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,
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! }
)