Move emoji reaction limitation constraints
This commit is contained in:
parent
dcf52daa9b
commit
47bedd20ca
6 changed files with 21 additions and 5 deletions
|
@ -83,6 +83,11 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
|
|||
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||
max_expiration: PollValidator::MAX_EXPIRATION,
|
||||
},
|
||||
|
||||
emoji_reactions: {
|
||||
max_reactions: EmojiReaction::EMOJI_REACTION_LIMIT,
|
||||
max_reactions_per_account: EmojiReaction::EMOJI_REACTION_PER_ACCOUNT_LIMIT,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -102,7 +107,9 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
|
|||
def fedibird_capabilities
|
||||
capabilities = [
|
||||
:emoji_reaction,
|
||||
:visibility_public_unlisted
|
||||
:visibility_public_unlisted,
|
||||
:enable_wide_emoji,
|
||||
:enable_wide_emoji_reaction,
|
||||
]
|
||||
|
||||
capabilities << :profile_search unless Chewy.enabled?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue