Move emoji reaction limitation constraints
This commit is contained in:
parent
dcf52daa9b
commit
47bedd20ca
6 changed files with 21 additions and 5 deletions
|
@ -17,6 +17,9 @@
|
|||
class EmojiReaction < ApplicationRecord
|
||||
include Paginable
|
||||
|
||||
EMOJI_REACTION_LIMIT = 32767
|
||||
EMOJI_REACTION_PER_ACCOUNT_LIMIT = 5
|
||||
|
||||
update_index('statuses', :status)
|
||||
|
||||
belongs_to :account, inverse_of: :emoji_reactions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue