Add reaction limit to instance serializer

main
Jeremy Kescher 2 years ago committed by fef
parent 65d727a9e6
commit e3f76a1cb0
No known key found for this signature in database
GPG Key ID: EC22E476DC2D3D84

@ -76,6 +76,10 @@ class REST::InstanceSerializer < ActiveModel::Serializer
translation: {
enabled: TranslationService.configured?,
},
reactions: {
max_reactions: StatusReactionValidator::LIMIT,
},
}
end

@ -96,6 +96,10 @@ class REST::V1::InstanceSerializer < ActiveModel::Serializer
min_expiration: PollValidator::MIN_EXPIRATION,
max_expiration: PollValidator::MAX_EXPIRATION,
},
reactions: {
max_reactions: StatusReactionValidator::LIMIT,
},
}
end

Loading…
Cancel
Save