From 81ee7d9938e34ee340a242eb7868e3dfc008c2ed Mon Sep 17 00:00:00 2001 From: mattyatea Date: Mon, 16 Oct 2023 21:46:52 +0900 Subject: [PATCH] fix --- packages/backend/src/core/CustomEmojiService.ts | 3 +++ packages/frontend/src/components/MkEmojiEditDialog.vue | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/core/CustomEmojiService.ts b/packages/backend/src/core/CustomEmojiService.ts index 90dcf963fd..e9dfaed228 100644 --- a/packages/backend/src/core/CustomEmojiService.ts +++ b/packages/backend/src/core/CustomEmojiService.ts @@ -127,6 +127,9 @@ export class CustomEmojiService implements OnApplicationShutdown { isSensitive: data.isSensitive, localOnly: data.localOnly, draft: data.draft, + originalUrl: data.driveFile != null ? data.driveFile.url : undefined, + publicUrl: data.driveFile != null ? (data.driveFile.webpublicUrl ?? data.driveFile.url) : undefined, + type: data.driveFile != null ? (data.driveFile.webpublicType ?? data.driveFile.type) : undefined, roleIdsThatCanBeUsedThisEmojiAsReaction: data.roleIdsThatCanBeUsedThisEmojiAsReaction ?? undefined, }); diff --git a/packages/frontend/src/components/MkEmojiEditDialog.vue b/packages/frontend/src/components/MkEmojiEditDialog.vue index 4e5fd70b6d..43b03971e7 100644 --- a/packages/frontend/src/components/MkEmojiEditDialog.vue +++ b/packages/frontend/src/components/MkEmojiEditDialog.vue @@ -47,11 +47,11 @@ SPDX-License-Identifier: AGPL-3.0-only - + -
+
{{ i18n.ts.add }}