fix: set the cap to 100

This commit is contained in:
Sophie L
2022-08-30 20:26:04 +01:00
committed by Paul Makles
parent ca8d2e6118
commit 81fc3e7760

View File

@@ -55,7 +55,7 @@ pub async fn create_emoji(
// Check that there are no more than 100 emoji
// ! FIXME: hardcoded upper limit
let emojis = db.fetch_emoji_by_parent_id(&server.id).await?;
if emojis.len() > 100 {
if emojis.len() > 99 {
return Err(Error::TooManyEmoji);
}
}