diff options
| author | nullobsi <me@nullob.si> | 2022-02-05 23:02:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 16:02:48 +0900 |
| commit | 3ff89fa7ecb643abf944ce966ffbf7f49000ca3f (patch) | |
| tree | d0cc19173831e4f09e085c8bd805eb70c0e2ce1e /packages/backend/src/server/api/stream/channels/global-timeline.ts | |
| parent | Fix cast (#8257) (diff) | |
| download | misskey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.gz misskey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.tar.bz2 misskey-3ff89fa7ecb643abf944ce966ffbf7f49000ca3f.zip | |
feat: Option to show replies in timeline (rebase #7685) (#8202)
* Add an option for timeline replies. Credit to Emilis (puffaboo)
* update db on request
Diffstat (limited to 'packages/backend/src/server/api/stream/channels/global-timeline.ts')
| -rw-r--r-- | packages/backend/src/server/api/stream/channels/global-timeline.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/server/api/stream/channels/global-timeline.ts b/packages/backend/src/server/api/stream/channels/global-timeline.ts index f14f597aac..ecd87d093d 100644 --- a/packages/backend/src/server/api/stream/channels/global-timeline.ts +++ b/packages/backend/src/server/api/stream/channels/global-timeline.ts @@ -43,7 +43,7 @@ export default class extends Channel { } // 関係ない返信は除外 - if (note.reply) { + if (note.reply && !this.user!.showTimelineReplies) { const reply = note.reply; // 「チャンネル接続主への返信」でもなければ、「チャンネル接続主が行った返信」でもなければ、「投稿者の投稿者自身への返信」でもない場合 if (reply.userId !== this.user!.id && note.userId !== this.user!.id && reply.userId !== note.userId) return; |