From b04147e4a3a32f187df58010321f0d9a547d5911 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 26 Oct 2023 18:25:05 +0300 Subject: [PATCH] emojis_json -> emojis.json --- files/assets/js/emoji_modal.js | 2 +- files/routes/static.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index df407875a..c3eaa3f0c 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -155,7 +155,7 @@ const emojisSearchDictionary = { // get public emojis list function fetchEmojis() { const headers = new Headers({xhr: "xhr"}) - return fetch("/emojis_json", { + return fetch("/emojis.json", { headers, }) .then(res => res.json()) diff --git a/files/routes/static.py b/files/routes/static.py index 460fa5e28..85bc15a76 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -111,7 +111,7 @@ def get_emojis(nsfw): collected.append(emoji.json()) return collected -@app.get("/emojis_json") +@app.get("/emojis.json") @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) @auth_required