Skip to content

Commit

Permalink
change: allowPartialをデフォルトでtrueに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Nov 15, 2023
1 parent f9e3ae2 commit a8657cf
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/users/notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions packages/frontend/src/pages/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const prevPagination = {
params: computed(() => note ? ({
userId: note.userId,
untilId: note.id,
allowPartial: true,
}) : null),
};

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

Expand Down
1 change: 0 additions & 1 deletion packages/frontend/src/pages/user/index.files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion packages/frontend/src/pages/user/index.timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const pagination = {
withReplies: include.value === 'all',
withChannelNotes: include.value === 'all',
withFiles: include.value === 'files',
allowPartial: true,
})),
};
</script>
Expand Down

0 comments on commit a8657cf

Please sign in to comment.