バグfix

This commit is contained in:
mattyatea 2023-12-23 11:06:27 +09:00
parent 7491a4af7b
commit 1f1908870c
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ export const paramDef = {
} },
Request: { type: 'boolean' },
},
required: ['id', 'name', 'draft', 'aliases'],
required: ['id', 'name', 'aliases'],
} as const;
@Injectable()
@ -102,7 +102,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
isSensitive: ps.isSensitive,
localOnly: ps.localOnly,
roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction,
draft: ps.draft,
draft: false,
}, me);} else {
const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl);
if (file === null) throw new ApiError(meta.errors.noSuchFile);