Add reaction limit to instance serializer
This commit is contained in:
parent
0f59ce3e56
commit
3431edd68b
|
@ -77,6 +77,10 @@ class REST::InstanceSerializer < ActiveModel::Serializer
|
|||
translation: {
|
||||
enabled: TranslationService.configured?,
|
||||
},
|
||||
|
||||
reactions: {
|
||||
max_reactions: StatusReactionValidator::LIMIT,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
|
|
@ -97,6 +97,10 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
|
|||
min_expiration: PollValidator::MIN_EXPIRATION,
|
||||
max_expiration: PollValidator::MAX_EXPIRATION,
|
||||
},
|
||||
|
||||
reactions: {
|
||||
max_reactions: StatusReactionValidator::LIMIT,
|
||||
},
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue