summaryrefslogtreecommitdiff
path: root/web/source/settings/admin/emoji/local/use-shortcode.js
diff options
context:
space:
mode:
authorLibravatar f0x52 <f0x@cthu.lu>2023-01-18 16:41:00 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-18 16:41:00 +0100
commit747683ba54aa7e9cfe56542696c756c6ae225275 (patch)
treeb3a3796a7df58fd93398b560a6c5cc1e9dd958d8 /web/source/settings/admin/emoji/local/use-shortcode.js
parent[chore] Fix new emoji preview title/alt text (#1354) (diff)
downloadgotosocial-747683ba54aa7e9cfe56542696c756c6ae225275.tar.xz
[chore] Settings refactor fix 2 (#1357)
* fix emoji query tagging * fix proxy url for gts instance * fix: don't flash callback error on authorize flow
Diffstat (limited to 'web/source/settings/admin/emoji/local/use-shortcode.js')
-rw-r--r--web/source/settings/admin/emoji/local/use-shortcode.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/source/settings/admin/emoji/local/use-shortcode.js b/web/source/settings/admin/emoji/local/use-shortcode.js
index 109914b8b..03ee24e88 100644
--- a/web/source/settings/admin/emoji/local/use-shortcode.js
+++ b/web/source/settings/admin/emoji/local/use-shortcode.js
@@ -28,7 +28,7 @@ const shortcodeRegex = /^[a-z0-9_]+$/;
module.exports = function useShortcode() {
const {
data: emoji = []
- } = query.useGetAllEmojiQuery({ filter: "domain:local" });
+ } = query.useListEmojiQuery({ filter: "domain:local" });
const emojiCodes = React.useMemo(() => {
return new Set(emoji.map((e) => e.shortcode));