remove max note text length setting

Resolve #8323
This commit is contained in:
syuilo
2022-02-20 16:07:43 +09:00
parent fcfb5ef0a3
commit a1c7c1fb49
10 changed files with 22 additions and 39 deletions

View File

@ -138,11 +138,6 @@ export const meta = {
type: 'string',
optional: false, nullable: true,
},
maxNoteTextLength: {
type: 'number',
optional: false, nullable: false,
default: 500,
},
emojis: {
type: 'array',
optional: false, nullable: false,
@ -506,7 +501,6 @@ export default define(meta, paramDef, async (ps, me) => {
iconUrl: instance.iconUrl,
backgroundImageUrl: instance.backgroundImageUrl,
logoImageUrl: instance.logoImageUrl,
maxNoteTextLength: Math.min(instance.maxNoteTextLength, DB_MAX_NOTE_TEXT_LENGTH),
emojis: await Emojis.packMany(emojis),
ads: ads.map(ad => ({
id: ad.id,