絵文字ダイアログの不具合の修正

(cherry picked from commit c9d6c17353a663bf68cdea9bcef100f5de5edb68)
This commit is contained in:
tar_bin 2023-05-19 01:43:42 +09:00 committed by mattyatea
parent ffa81260ac
commit d607f34380
4 changed files with 50 additions and 23 deletions

View file

@ -36,6 +36,8 @@ export const paramDef = {
} },
license: { type: 'string', nullable: true },
fileId: { type: 'string', format: 'misskey:id' },
isSensitive: { type: 'boolean' },
localOnly: { type: 'boolean' },
},
required: ['name', 'fileId'],
} as const;
@ -66,6 +68,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
license: ps.license ?? null,
host: null,
draft: true,
isSensitive: ps.isSensitive ?? false,
localOnly: ps.localOnly ?? false,
roleIdsThatCanBeUsedThisEmojiAsReaction: [],
});
this.moderationLogService.insertModerationLog(me, 'addEmoji', {