enhance(server): clean emoji response

This commit is contained in:
syuilo
2022-12-31 08:43:13 +09:00
parent fcfcb8da1d
commit b2d6561bc6
11 changed files with 9 additions and 186 deletions

View File

@ -309,7 +309,6 @@ export const paramDef = {
type: 'object',
properties: {
detail: { type: 'boolean', default: true },
omitEmojiUrl: { type: 'boolean', default: false },
},
required: [],
} as const;
@ -391,7 +390,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
backgroundImageUrl: instance.backgroundImageUrl,
logoImageUrl: instance.logoImageUrl,
maxNoteTextLength: MAX_NOTE_TEXT_LENGTH, // 後方互換性のため
emojis: await this.emojiEntityService.packMany(emojis, { omitUrl: ps.omitEmojiUrl }),
emojis: await this.emojiEntityService.packMany(emojis),
defaultLightTheme: instance.defaultLightTheme,
defaultDarkTheme: instance.defaultDarkTheme,
ads: ads.map(ad => ({