From eb106a9758ef41515b2dc55bfc5f0f9c1bad6bb8 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Wed, 23 Nov 2022 16:27:49 -0600 Subject: [PATCH] Include reposts in no-replies view of feeds --- src/state/models/feed-view.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts index 2ac88d2e..92c394df 100644 --- a/src/state/models/feed-view.ts +++ b/src/state/models/feed-view.ts @@ -209,7 +209,12 @@ export class FeedModel { get nonReplyFeed() { return this.feed.filter( - post => !post.record.reply || post._isThreadParent || post._isThreadChild, + post => + !post.record.reply || // not a reply + !!post.repostedBy || // or a repost + !!post.trendedBy || // or a trend + post._isThreadParent || // but allow if it's a thread by the user + post._isThreadChild, ) }