about summary refs log tree commit diff
path: root/src/lib/api/feed-manip.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-05-12 18:30:00 +0100
committerGitHub <noreply@github.com>2024-05-12 10:30:00 -0700
commit4458b031732149d6f9c107582b9e4ec343385518 (patch)
treea6f970b792a2fb96b966b84f8c26b6408ab9acc7 /src/lib/api/feed-manip.ts
parent97750c4aabbcf221561d1d373cb2238627411be2 (diff)
downloadvoidsky-4458b031732149d6f9c107582b9e4ec343385518.tar.zst
FeedFeedback fixes (#3968)
* Lower seen threshold to 1.5s

* Send feedContext for replies

* Use a simpler and more reliable feedContext fallback

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/lib/api/feed-manip.ts')
-rw-r--r--src/lib/api/feed-manip.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/api/feed-manip.ts b/src/lib/api/feed-manip.ts
index 85089608a..3902a5659 100644
--- a/src/lib/api/feed-manip.ts
+++ b/src/lib/api/feed-manip.ts
@@ -71,6 +71,10 @@ export class FeedViewPostsSlice {
       ?.__source as ReasonFeedSource
   }
 
+  get feedContext() {
+    return this.items.find(item => item.feedContext)?.feedContext
+  }
+
   containsUri(uri: string) {
     return !!this.items.find(item => item.post.uri === uri)
   }