mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
enhance(frontend): リストTLで、ユーザーが追加・削除されてもTLを更新しないように
This commit is contained in:
parent
4f4f15a6a4
commit
fca6ae9403
1 changed files with 0 additions and 10 deletions
|
@ -38,14 +38,6 @@ const prepend = note => {
|
|||
}
|
||||
};
|
||||
|
||||
const onUserAdded = () => {
|
||||
tlComponent.pagingComponent?.reload();
|
||||
};
|
||||
|
||||
const onUserRemoved = () => {
|
||||
tlComponent.pagingComponent?.reload();
|
||||
};
|
||||
|
||||
let endpoint;
|
||||
let query;
|
||||
let connection;
|
||||
|
@ -125,8 +117,6 @@ if (props.src === 'antenna') {
|
|||
listId: props.list,
|
||||
});
|
||||
connection.on('note', prepend);
|
||||
connection.on('userAdded', onUserAdded);
|
||||
connection.on('userRemoved', onUserRemoved);
|
||||
} else if (props.src === 'channel') {
|
||||
endpoint = 'channels/timeline';
|
||||
query = {
|
||||
|
|
Loading…
Reference in a new issue