mastodon/app/serializers/activitypub
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_follow_serializer.rb Revert #4616 (#4638) 2017-08-19 02:23:47 +02:00
activity_serializer.rb Add published property to ActivityPub activity for reblogs (#5000) 2017-09-18 20:30:11 +02:00
actor_serializer.rb Fix some ActivityPub JSON bugs (#4796) 2017-09-04 18:26:33 +02:00
block_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
collection_serializer.rb Minor ActivityPub JSON fixes (#4214) 2017-07-16 10:28:55 +02:00
delete_serializer.rb Define missing JSON-LD properties (#4767) 2017-09-02 14:01:23 +02:00
follow_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
like_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
note_serializer.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
public_key_serializer.rb Add public key declaration to actors (#4215) 2017-07-17 02:37:27 +02:00
reject_follow_serializer.rb Revert #4616 (#4638) 2017-08-19 02:23:47 +02:00
undo_announce_serializer.rb Add ActivityPub serializer for Undo of Announce (#4703) 2017-08-26 15:32:40 +02:00
undo_block_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
undo_follow_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
undo_like_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00
update_serializer.rb Add ActivityPub inbox (#4216) 2017-08-08 21:52:15 +02:00