We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta.maxNoteTextLength値にはサイズ上限がついていないが note.textの最大サイズは8192文字の制限があり
meta.maxNoteTextLength
note.text
https://github.com/syuilo/misskey/blob/aff80199e5b8d0f27f13b3679378c4b0a60e920f/src/models/entities/note.ts#L46-L49
meta.maxNoteTextLength = 10000 新しく投稿するnoteの文字数 = 9999
だとUI上では最大文字数を超えていないように見えるが 実際はDBのinsert時エラーになるはず
ちなみにnote.textに最大文字数の制限がついたのは 92dee53 (v11.13.0頃)ですがこれに該当するmigrationは作成されていないため v11.13.0以前に立てた鯖はmeta.maxNoteTextLengthを8192以上に設定してもDBのinsert時エラーにならない
note.textの文字数制限を廃止 または meta.maxNoteTextLength値を8192以上に設定できないようにする
note.textには最大文字数の制限があるけど meta.maxNoteTextLengthは上限値の設定がいない
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
💡 Summary
meta.maxNoteTextLength
値にはサイズ上限がついていないがnote.text
の最大サイズは8192文字の制限がありhttps://github.com/syuilo/misskey/blob/aff80199e5b8d0f27f13b3679378c4b0a60e920f/src/models/entities/note.ts#L46-L49
だとUI上では最大文字数を超えていないように見えるが
実際はDBのinsert時エラーになるはず
ちなみに
note.text
に最大文字数の制限がついたのは 92dee53 (v11.13.0頃)ですがこれに該当するmigrationは作成されていないためv11.13.0以前に立てた鯖は
meta.maxNoteTextLength
を8192以上に設定してもDBのinsert時エラーにならない🙂 Expected Behavior
note.text
の文字数制限を廃止または
meta.maxNoteTextLength
値を8192以上に設定できないようにするnote.text
には最大文字数の制限があるけどmeta.maxNoteTextLength
は上限値の設定がいない📝 Steps to Reproduce
meta.maxNoteTextLength
値を8192以上に設定する📌 Environment
The text was updated successfully, but these errors were encountered: