localOnly

This commit is contained in:
mattyatea 2024-01-23 21:01:55 +09:00
parent 0eacd5e1f7
commit 7dd7c6ad4a
1 changed files with 7 additions and 7 deletions

View File

@ -204,7 +204,7 @@ function updatePaginationQuery() {
query = {
withFiles: true,
withRenotes: props.withRenotes,
withReplies: props.withReplies,
withReplies: false,
};
} else if (props.src === 'mentions') {
endpoint = 'notes/mentions';
@ -232,12 +232,12 @@ function updatePaginationQuery() {
roleId: props.role,
};
} else if (props.src.startsWith('custom-timeline')) {
endpoint = "notes/any-local-timeline";
endpoint = 'notes/any-local-timeline';
query = {
host: defaultStore.state[`remoteLocalTimelineDomain${props.src.split("-")[2]}`],
remoteToken:defaultStore.state[`remoteLocalTimelineToken${props.src.split("-")[2]}`]
host: defaultStore.state[`remoteLocalTimelineDomain${props.src.split('-')[2]}`],
remoteToken: defaultStore.state[`remoteLocalTimelineToken${props.src.split('-')[2]}`],
};
}else {
} else {
endpoint = null;
query = null;
}