change: `allowPartial`をデフォルトでtrueに変更

This commit is contained in:
yukineko 2023-11-15 18:40:23 +09:00
parent f9e3ae2522
commit a8657cfe8d
No known key found for this signature in database
GPG Key ID: E5BACB72109B7B90
8 changed files with 5 additions and 9 deletions

View File

@ -59,7 +59,7 @@ export const paramDef = {
withFiles: { type: 'boolean', default: false }, withFiles: { type: 'boolean', default: false },
withRenotes: { type: 'boolean', default: true }, withRenotes: { type: 'boolean', default: true },
withReplies: { type: 'boolean', default: false }, withReplies: { type: 'boolean', default: false },
allowPartial: { type: 'boolean', default: false }, allowPartial: { type: 'boolean', default: true },
}, },
required: [], required: [],
} as const; } as const;

View File

@ -54,7 +54,7 @@ export const paramDef = {
untilId: { type: 'string', format: 'misskey:id' }, untilId: { type: 'string', format: 'misskey:id' },
sinceDate: { type: 'integer' }, sinceDate: { type: 'integer' },
untilDate: { type: 'integer' }, untilDate: { type: 'integer' },
allowPartial: { type: 'boolean', default: false }, allowPartial: { type: 'boolean', default: true },
}, },
required: [], required: [],
} as const; } as const;

View File

@ -48,7 +48,7 @@ export const paramDef = {
includeLocalRenotes: { type: 'boolean', default: true }, includeLocalRenotes: { type: 'boolean', default: true },
withFiles: { type: 'boolean', default: false }, withFiles: { type: 'boolean', default: false },
withRenotes: { type: 'boolean', default: true }, withRenotes: { type: 'boolean', default: true },
allowPartial: { type: 'boolean', default: false }, allowPartial: { type: 'boolean', default: true },
}, },
required: [], required: [],
} as const; } as const;

View File

@ -60,7 +60,7 @@ export const paramDef = {
default: false, default: false,
description: 'Only show notes that have attached files.', description: 'Only show notes that have attached files.',
}, },
allowPartial: { type: 'boolean', default: false }, allowPartial: { type: 'boolean', default: true },
}, },
required: ['listId'], required: ['listId'],
} as const; } as const;

View File

@ -54,7 +54,7 @@ export const paramDef = {
untilDate: { type: 'integer' }, untilDate: { type: 'integer' },
withFiles: { type: 'boolean', default: false }, withFiles: { type: 'boolean', default: false },
excludeNsfw: { type: 'boolean', default: false }, excludeNsfw: { type: 'boolean', default: false },
allowPartial: { type: 'boolean', default: false }, allowPartial: { type: 'boolean', default: true },
}, },
required: ['userId'], required: ['userId'],
} as const; } as const;

View File

@ -73,7 +73,6 @@ const prevPagination = {
params: computed(() => note ? ({ params: computed(() => note ? ({
userId: note.userId, userId: note.userId,
untilId: note.id, untilId: note.id,
allowPartial: true,
}) : null), }) : null),
}; };
@ -84,7 +83,6 @@ const nextPagination = {
params: computed(() => note ? ({ params: computed(() => note ? ({
userId: note.userId, userId: note.userId,
sinceId: note.id, sinceId: note.id,
allowPartial: true,
}) : null), }) : null),
}; };

View File

@ -62,7 +62,6 @@ onMounted(() => {
withFiles: true, withFiles: true,
excludeNsfw: defaultStore.state.nsfw !== 'ignore', excludeNsfw: defaultStore.state.nsfw !== 'ignore',
limit: 15, limit: 15,
allowPartial: true,
}).then(notes => { }).then(notes => {
for (const note of notes) { for (const note of notes) {
for (const file of note.files) { for (const file of note.files) {

View File

@ -40,7 +40,6 @@ const pagination = {
withReplies: include.value === 'all', withReplies: include.value === 'all',
withChannelNotes: include.value === 'all', withChannelNotes: include.value === 'all',
withFiles: include.value === 'files', withFiles: include.value === 'files',
allowPartial: true,
})), })),
}; };
</script> </script>