Skip to content
Snippets Groups Projects
Commit e3a5584d authored by syuilo's avatar syuilo
Browse files

feat: increase files limit for note

#8062
parent 8d502eba
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
- リバーシ機能が削除されました
- 後日別リポジトリとして復活予定です
- Chat UIが削除されました
- ノートに添付できるファイルの数が16に増えました
### Improvements
- カスタム絵文字一括編集機能
......
......@@ -48,7 +48,7 @@ export const meta = {
validator: $.optional.nullable.str.pipe(text =>
text.trim() != ''
&& length(text.trim()) <= maxNoteTextLength
&& Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit
&& Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH, // DB limit
),
default: null,
},
......@@ -78,11 +78,11 @@ export const meta = {
},
fileIds: {
validator: $.optional.arr($.type(ID)).unique().range(1, 4),
validator: $.optional.arr($.type(ID)).unique().range(1, 16),
},
mediaIds: {
validator: $.optional.arr($.type(ID)).unique().range(1, 4),
validator: $.optional.arr($.type(ID)).unique().range(1, 16),
deprecated: true,
},
......
......@@ -10,7 +10,7 @@
</div>
</template>
</XDraggable>
<p class="remain">{{ 4 - files.length }}/4</p>
<p class="remain">{{ 16 - files.length }}/16</p>
</div>
</template>
......@@ -41,7 +41,6 @@ export default defineComponent({
data() {
return {
menu: null as Promise<null> | null,
};
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment