This commit is contained in:
mattyatea 2023-11-19 17:55:34 +09:00
parent 9e9c76fa57
commit 4e3aacc113
3 changed files with 14 additions and 11 deletions

View file

@ -107,12 +107,6 @@ function connectChannel() {
withFiles: props.onlyFiles ? true : undefined,
});
} else if (props.src === 'media') {
endpoint = 'notes/hybrid-timeline';
query = {
withFiles: true,
withRenotes: props.withRenotes,
withReplies: props.withReplies,
};
connection = stream.useChannel('hybridTimeline', {
withFiles: true,
withRenotes: props.withRenotes,
@ -198,6 +192,13 @@ function updatePaginationQuery() {
withRenotes: props.withRenotes,
withFiles: props.onlyFiles ? true : undefined,
};
}else if(props.src === 'media'){
endpoint = 'notes/hybrid-timeline';
query = {
withFiles: true,
withRenotes: props.withRenotes,
withReplies: props.withReplies,
};
} else if (props.src === 'mentions') {
endpoint = 'notes/mentions';
query = null;