Fixed pulling emoji from the shortcode property
ci/woodpecker/push/ociImagePush Pipeline was successful Details

This commit is contained in:
Natty 2023-11-07 03:35:59 +01:00
parent 0bb0c775dc
commit 0ed23fe68e
Signed by: natty
GPG Key ID: BF6CB659ADEE60EC
1 changed files with 6 additions and 1 deletions

View File

@ -17,6 +17,7 @@ import {
magConvertReaction, magConvertReaction,
magReactionEquals, magReactionEquals,
magReactionToLegacy, magReactionToLegacy,
magTransProperty,
} from "@/scripts-mag/mag-util"; } from "@/scripts-mag/mag-util";
export default defineComponent({ export default defineComponent({
@ -550,7 +551,11 @@ export default defineComponent({
this.customEmojis.find((e) => this.customEmojis.find((e) =>
magReactionEquals( magReactionEquals(
magConvertReaction( magConvertReaction(
`:${e.name}:` `:${magTransProperty(
e,
"shortcode",
"name"
)}:`
), ),
{ name, host, url: null! } { name, host, url: null! }
) )