This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/models
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
..
concerns
form
web
account.rb
account_domain_block.rb
account_filter.rb
application_record.rb
block.rb
context.rb
conversation.rb
conversation_mute.rb
custom_emoji.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
domain_block.rb
export.rb
favourite.rb
feed.rb
follow.rb
follow_request.rb
import.rb
instance.rb
instance_filter.rb
media_attachment.rb
mention.rb
mute.rb
notification.rb
preview_card.rb
remote_follow.rb
remote_profile.rb
report.rb
report_filter.rb
search.rb
session_activation.rb
setting.rb
site_upload.rb
status.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
status_pin.rb
stream_entry.rb
subscription.rb
tag.rb
user.rb
web.rb