From 0ed23fe68ea83f09764cb556eb08c3b380bda782 Mon Sep 17 00:00:00 2001 From: Natty Date: Tue, 7 Nov 2023 03:35:59 +0100 Subject: [PATCH] Fixed pulling emoji from the shortcode property --- fe_calckey/frontend/client/src/components/mfm.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fe_calckey/frontend/client/src/components/mfm.ts b/fe_calckey/frontend/client/src/components/mfm.ts index 80c80f2..001f61c 100644 --- a/fe_calckey/frontend/client/src/components/mfm.ts +++ b/fe_calckey/frontend/client/src/components/mfm.ts @@ -17,6 +17,7 @@ import { magConvertReaction, magReactionEquals, magReactionToLegacy, + magTransProperty, } from "@/scripts-mag/mag-util"; export default defineComponent({ @@ -550,7 +551,11 @@ export default defineComponent({ this.customEmojis.find((e) => magReactionEquals( magConvertReaction( - `:${e.name}:` + `:${magTransProperty( + e, + "shortcode", + "name" + )}:` ), { name, host, url: null! } )