Repository: revoltchat/backend (language: rust)

Issue:
bug: server emoji count can be 1 more than the set limit
### What happened?

As pointed out by [Toatrika#5321 on Revolt's Server](https://app.revolt.chat/server/01F7ZSBSFHQ8TA81725KQCSDDP/channel/01F92C5ZXBQWQ8KY7J8KY917NM/01HGS65T457V7N6XWM9HYG8R59), It seems like servers can have exactly one more emoji than the limit imposed by the server.

I checked the source code and found out that in [line 48 of customization/emoji_create.rs](https://github.com/revoltchat/backend/blob/25016efbc2bbe96fbe79f2dc1b29dee3c924007c/crates/delta/src/routes/customisation/emoji_create.rs#L48), the backend is checking if the server's emoji count is *greater than* the maximum limit, which means that a server can have 101 emotes.

## Proposed change (literally 2 characters that I am too lazy to change)

```diff
// ...

- if emojis.len() > config.features.limits.default.server_emoji {
+ if emojis.len() >= config.features.limits.default.server_emoji {
                return Err(create_error!(TooManyEmoji {
                    max: config.features.limits.default.server_emoji,
                }));
            }

// ...
```



Discussion / hints:
i think in addition to this the default emoji limit should be increased from 100 to 101 to keep consistency (some servers currently have 101 emotes)

Fix patch:
diff --git a/crates/delta/src/routes/customisation/emoji_create.rs b/crates/delta/src/routes/customisation/emoji_create.rs
index 699170914..a8a444121 100644
--- a/crates/delta/src/routes/customisation/emoji_create.rs
+++ b/crates/delta/src/routes/customisation/emoji_create.rs
@@ -45,7 +45,7 @@ pub async fn create_emoji(
 
             // Check that we haven't hit the emoji limit
             let emojis = db.fetch_emoji_by_parent_id(&server.id).await?;
-            if emojis.len() > config.features.limits.default.server_emoji {
+            if emojis.len() >= config.features.limits.default.server_emoji {
                 return Err(create_error!(TooManyEmoji {
                     max: config.features.limits.default.server_emoji,
                 }));


Test patch: