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
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
collection_serializer.rb
delete_serializer.rb Define missing JSON-LD properties (#4767) 2017-09-02 14:01:23 +02:00
follow_serializer.rb
like_serializer.rb
note_serializer.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
public_key_serializer.rb
reject_follow_serializer.rb
undo_announce_serializer.rb
undo_block_serializer.rb
undo_follow_serializer.rb
undo_like_serializer.rb
update_serializer.rb