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
This commit is contained in:
Chris Kanich
2025-01-21 14:08:37 -06:00
committed by GitHub
parent 45b5af604a
commit 8e00f044fe
4 changed files with 14 additions and 5 deletions
+7 -4
View File
@@ -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,
})
}