mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
プライベートタブでログインし直すと文字数がNaNになる問題を修正
This commit is contained in:
parent
d51022924e
commit
68899ee206
@ -4,6 +4,7 @@ import { fetchMeta } from '@/misc/fetch-meta';
|
||||
import { Ads, Emojis, Users } from '@/models/index';
|
||||
import { DB_MAX_NOTE_TEXT_LENGTH } from '@/misc/hard-limits';
|
||||
import { MoreThan } from 'typeorm';
|
||||
import { MAX_NOTE_TEXT_LENGTH } from '@/const';
|
||||
|
||||
export const meta = {
|
||||
tags: ['meta'],
|
||||
@ -138,6 +139,10 @@ export const meta = {
|
||||
type: 'string',
|
||||
optional: false, nullable: true,
|
||||
},
|
||||
maxNoteTextLength: {
|
||||
type: 'number',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
emojis: {
|
||||
type: 'array',
|
||||
optional: false, nullable: false,
|
||||
@ -501,6 +506,7 @@ export default define(meta, paramDef, async (ps, me) => {
|
||||
iconUrl: instance.iconUrl,
|
||||
backgroundImageUrl: instance.backgroundImageUrl,
|
||||
logoImageUrl: instance.logoImageUrl,
|
||||
maxNoteTextLength: MAX_NOTE_TEXT_LENGTH, // 後方互換性のため
|
||||
emojis: await Emojis.packMany(emojis),
|
||||
ads: ads.map(ad => ({
|
||||
id: ad.id,
|
||||
|
Loading…
Reference in New Issue
Block a user