refactor: 絵文字URLを引き回すのをやめる (#9423)

This commit is contained in:
syuilo
2022-12-29 10:14:44 +09:00
committed by GitHub
parent 510e6ec7e9
commit 912791b3ab
28 changed files with 79 additions and 58 deletions

View File

@ -309,6 +309,7 @@ export const paramDef = {
type: 'object',
properties: {
detail: { type: 'boolean', default: true },
omitEmojiUrl: { type: 'boolean', default: false },
},
required: [],
} as const;
@ -390,7 +391,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),
emojis: await this.emojiEntityService.packMany(emojis, { omitUrl: ps.omitEmojiUrl }),
defaultLightTheme: instance.defaultLightTheme,
defaultDarkTheme: instance.defaultDarkTheme,
ads: ads.map(ad => ({