0
0
Fork 0

[WIP] Enable custom emoji on account pages and in the sidebar (#6124)

Federate custom emojis with accounts
This commit is contained in:
David Underwood 2018-04-01 17:55:42 -04:00 committed by Eugen Rochko
parent f464f98fd3
commit 123a343d11
10 changed files with 158 additions and 5 deletions

View file

@ -350,6 +350,10 @@ class Account < ApplicationRecord
end
end
def emojis
CustomEmoji.from_text(note, domain)
end
before_create :generate_keys
before_validation :normalize_domain
before_validation :prepare_contents, if: :local?