fix: iroiro
Signed-off-by: mattyatea <mattyacocacora0@gmail.com> カスタム絵文字一覧を一覧、新着、申請中に分離 (cherry picked from commit 5c464cd1bc177f0276397a686160c5c77e774d10) fix: 絵文字管理画面の表示不具合の修正 (cherry picked from commit 5300ff763bb008699b35dc6e219b50ac1c4fd7af) Signed-off-by: mattyatea <mattyacocacora0@gmail.com> Fix:draftが2重に宣言されてた Signed-off-by: mattyatea <mattyacocacora0@gmail.com>
This commit is contained in:
parent
08311ece41
commit
7149961f33
13 changed files with 775 additions and 493 deletions
|
|
@ -35,6 +35,8 @@ export const paramDef = {
|
|||
type: 'string',
|
||||
} },
|
||||
license: { type: 'string', nullable: true },
|
||||
isSensitive: { type: 'boolean', nullable: true },
|
||||
localOnly: { type: 'boolean', nullable: true },
|
||||
fileId: { type: 'string', format: 'misskey:id' },
|
||||
},
|
||||
required: ['name', 'fileId'],
|
||||
|
|
@ -42,8 +44,8 @@ export const paramDef = {
|
|||
|
||||
// TODO: ロジックをサービスに切り出す
|
||||
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
@Injectable()
|
||||
// eslint-disable-next-line import/no-default-export
|
||||
export default class extends Endpoint<typeof meta, typeof paramDef> {
|
||||
constructor(
|
||||
@Inject(DI.driveFilesRepository)
|
||||
|
|
@ -64,12 +66,16 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
category: ps.category ?? null,
|
||||
aliases: ps.aliases ?? [],
|
||||
license: ps.license ?? null,
|
||||
isSensitive: ps.isSensitive ?? false,
|
||||
localOnly: ps.localOnly ?? false,
|
||||
host: null,
|
||||
draft: true,
|
||||
roleIdsThatCanBeUsedThisEmojiAsReaction: [],
|
||||
});
|
||||
|
||||
this.moderationLogService.insertModerationLog(me, 'addEmoji', {
|
||||
await this.moderationLogService.log(me, 'addCustomEmoji', {
|
||||
emojiId: emoji.id,
|
||||
emoji: emoji,
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export const paramDef = {
|
|||
type: 'string',
|
||||
} },
|
||||
},
|
||||
required: ['name','fileId', 'draft'],
|
||||
required: ['name', 'fileId', 'draft'],
|
||||
} as const;
|
||||
|
||||
// TODO: ロジックをサービスに切り出す
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue