about summary refs log tree commit diff
path: root/src/state/models/feed-view.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-23 16:27:49 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-23 16:27:49 -0600
commiteb106a9758ef41515b2dc55bfc5f0f9c1bad6bb8 (patch)
tree4d2f0e6f13519223169390a9255a23be3ab697ee /src/state/models/feed-view.ts
parent810fcf99105016f5f55647d326909736c3641702 (diff)
downloadvoidsky-eb106a9758ef41515b2dc55bfc5f0f9c1bad6bb8.tar.zst
Include reposts in no-replies view of feeds
Diffstat (limited to 'src/state/models/feed-view.ts')
-rw-r--r--src/state/models/feed-view.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/state/models/feed-view.ts b/src/state/models/feed-view.ts
index 2ac88d2eb..92c394dfa 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,
     )
   }