diff options
author | dan <dan.abramov@gmail.com> | 2024-05-12 18:30:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 10:30:00 -0700 |
commit | 4458b031732149d6f9c107582b9e4ec343385518 (patch) | |
tree | a6f970b792a2fb96b966b84f8c26b6408ab9acc7 /src/lib/api | |
parent | 97750c4aabbcf221561d1d373cb2238627411be2 (diff) | |
download | voidsky-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')
-rw-r--r-- | src/lib/api/feed-manip.ts | 4 |
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) } |