From 68c37707415f6e4f61007d76ea9824ba6988b99b Mon Sep 17 00:00:00 2001 From: ltlapy Date: Sun, 19 Feb 2023 01:01:30 +0900 Subject: [PATCH] backend: Insert moderation log when copying emoji --- packages/backend/src/server/api/endpoints/admin/emoji/copy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts b/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts index 1b870d0899..478acb4682 100644 --- a/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts +++ b/packages/backend/src/server/api/endpoints/admin/emoji/copy.ts @@ -86,6 +86,10 @@ export default class extends Endpoint { driveFile, }); + this.moderationLogService.insertModerationLog(me, 'copyEmoji', { + emojiId: emoji.id, + }); + return { id: copied.id, };