enhance: 一部のタイムラインのqueryにallowPartialを追加

This commit is contained in:
yukineko 2023-11-05 17:02:54 +09:00
parent 85bf1ee7d8
commit ad401db2fc
No known key found for this signature in database
GPG Key ID: E5BACB72109B7B90
1 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,7 @@ if (props.src === 'antenna') {
query = {
withRenotes: props.withRenotes,
withFiles: props.onlyFiles ? true : undefined,
allowPartial: true,
};
} else if (props.src === 'local') {
endpoint = 'notes/local-timeline';
@ -142,6 +143,7 @@ if (props.src === 'antenna') {
withRenotes: props.withRenotes,
withReplies: props.withReplies,
withFiles: props.onlyFiles ? true : undefined,
allowPartial: true,
};
} else if (props.src === 'social') {
endpoint = 'notes/hybrid-timeline';
@ -149,6 +151,7 @@ if (props.src === 'antenna') {
withRenotes: props.withRenotes,
withReplies: props.withReplies,
withFiles: props.onlyFiles ? true : undefined,
allowPartial: true,
};
} else if (props.src === 'global') {
endpoint = 'notes/global-timeline';
@ -168,6 +171,7 @@ if (props.src === 'antenna') {
query = {
withFiles: props.onlyFiles ? true : undefined,
listId: props.list,
allowPartial: true,
};
} else if (props.src === 'channel') {
endpoint = 'channels/timeline';