diff options
author | Chris Kanich <kaytwo@gmail.com> | 2025-01-21 14:08:37 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-21 20:08:37 +0000 |
commit | 8e00f044fea7bd3f430b176a5226a725245428eb (patch) | |
tree | 9536ed21abb71d96ac3cbaa151e0ba68387f3b4a /src/screens/VideoFeed/index.tsx | |
parent | 45b5af604a17c42a9999ed94b8e981259f2cc2d1 (diff) | |
download | voidsky-8e00f044fea7bd3f430b176a5226a725245428eb.tar.zst |
show video feeds from posts even if they are replies (#7516)
* show video feeds from posts even if they are replies * only show feed post in VideoFeed
Diffstat (limited to 'src/screens/VideoFeed/index.tsx')
-rw-r--r-- | src/screens/VideoFeed/index.tsx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index b8403b737..3f89ed927 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -206,11 +206,14 @@ function Feed() { feedContext: string | undefined }[] = [] for (const slice of page.slices) { - for (const i of slice.items) { + const feedPost = slice.items.find( + item => item.uri === slice.feedPostUri, + ) + if (feedPost) { items.push({ - _reactKey: i._reactKey, - moderation: i.moderation, - post: i.post, + _reactKey: feedPost._reactKey, + moderation: feedPost.moderation, + post: feedPost.post, feedContext: slice.feedContext, }) } |