バグfix
This commit is contained in:
parent
7491a4af7b
commit
1f1908870c
|
@ -65,7 +65,7 @@ export const paramDef = {
|
||||||
} },
|
} },
|
||||||
Request: { type: 'boolean' },
|
Request: { type: 'boolean' },
|
||||||
},
|
},
|
||||||
required: ['id', 'name', 'draft', 'aliases'],
|
required: ['id', 'name', 'aliases'],
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -102,7 +102,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
isSensitive: ps.isSensitive,
|
isSensitive: ps.isSensitive,
|
||||||
localOnly: ps.localOnly,
|
localOnly: ps.localOnly,
|
||||||
roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction,
|
roleIdsThatCanBeUsedThisEmojiAsReaction: ps.roleIdsThatCanBeUsedThisEmojiAsReaction,
|
||||||
draft: ps.draft,
|
draft: false,
|
||||||
}, me);} else {
|
}, me);} else {
|
||||||
const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl);
|
const file = await this.driveFileEntityService.getFromUrl(emoji.originalUrl);
|
||||||
if (file === null) throw new ApiError(meta.errors.noSuchFile);
|
if (file === null) throw new ApiError(meta.errors.noSuchFile);
|
||||||
|
|
Loading…
Reference in a new issue