catstodon/app/lib/activitypub/activity
Eugen Rochko 81cec35dbf Custom emoji (#4988)
* Custom emoji

- In OStatus: `<link rel="emoji" name="coolcat" href="http://..." />`
- In ActivityPub: `{ type: "Emoji", name: ":coolcat:", href: "http://..." }`
- In REST API: Status object includes `emojis` array (`shortcode`, `url`)
- Domain blocks with reject media stop emojis
- Emoji file up to 50KB
- Web UI handles custom emojis
- Static pages render custom emojis as `<img />` tags

Side effects:

- Undo #4500 optimization, as I needed to modify it to restore
  shortcode handling in emojify()
- Formatter#plaintext should now make sure stripped out line-breaks
  and paragraphs are replaced with newlines

* Fix emoji at the start not being converted
2017-09-19 02:42:40 +02:00
..
accept.rb Support more variations of ActivityPub keyId in signature (#4630) 2017-08-21 22:57:34 +02:00
announce.rb Add published property to ActivityPub activity for reblogs (#5000) 2017-09-18 20:30:11 +02:00
block.rb Handle duplicate ActivityPub activities (#4639) 2017-08-20 16:53:47 +02:00
create.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
delete.rb Define missing JSON-LD properties (#4767) 2017-09-02 14:01:23 +02:00
follow.rb Handle duplicate ActivityPub activities (#4639) 2017-08-20 16:53:47 +02:00
like.rb Handle duplicate ActivityPub activities (#4639) 2017-08-20 16:53:47 +02:00
reject.rb Support more variations of ActivityPub keyId in signature (#4630) 2017-08-21 22:57:34 +02:00
undo.rb Make "unfollow" undo pending outgoing follow request too (#4781) 2017-09-02 20:44:41 +02:00
update.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00