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 },
withRenotes: { type: 'boolean', default: true },
withReplies: { type: 'boolean', default: false },
allowPartial: { type: 'boolean', default: false },
allowPartial: { type: 'boolean', default: true },
},
required: [],
} as const;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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