feat: 管理者権限を持ってる人はローカルの非公開投稿(ホーム)も見れるようなTLを追加

This commit is contained in:
mattyatea 2023-09-03 19:42:42 +09:00
parent 724ed47e5f
commit e1b22165db
8 changed files with 315 additions and 2 deletions

View file

@ -88,6 +88,15 @@ if (props.src === 'antenna') {
withReplies: defaultStore.state.showTimelineReplies,
});
connection.on('note', prepend);
} else if (props.src === 'all') {
endpoint = 'notes/hybrid-all-timeline';
query = {
withReplies: defaultStore.state.showTimelineReplies,
};
connection = stream.useChannel(' ', {
withReplies: defaultStore.state.showTimelineReplies,
});
connection.on('note', prepend);
} else if (props.src === 'global') {
endpoint = 'notes/global-timeline';
query = {