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:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user