From d075471b2d5f432c18a3f9d9747d02376853245f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 15 Jan 2023 07:53:15 +0900 Subject: [PATCH] fix(client): fix custom emoji rendering --- packages/frontend/src/components/mfm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/components/mfm.ts b/packages/frontend/src/components/mfm.ts index 865ec19531..9421625c9e 100644 --- a/packages/frontend/src/components/mfm.ts +++ b/packages/frontend/src/components/mfm.ts @@ -299,7 +299,8 @@ export default defineComponent({ key: Math.random(), emoji: `:${token.props.name}:`, normal: this.plain, - host: this.author.host, + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + host: this.author?.host, })]; }