enhance(server): clean emoji response
This commit is contained in:
parent
fcfcb8da1d
commit
b2d6561bc6
11 changed files with 9 additions and 186 deletions
|
@ -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 => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue