diff --git a/src/screens/VideoFeed/index.tsx b/src/screens/VideoFeed/index.tsx index 8d33011930..cceac1afa6 100644 --- a/src/screens/VideoFeed/index.tsx +++ b/src/screens/VideoFeed/index.tsx @@ -157,7 +157,6 @@ const viewabilityConfig = { type CurrentSource = { source: string - moderation?: ModerationDecision } | null type VideoItem = { @@ -255,7 +254,7 @@ function Feed() { index === currentIndex && currentSource?.source === post.embed.playlist } - moderation={currentSource?.moderation} + moderation={item.moderation} scrollGesture={scrollGesture} feedContext={item.feedContext} /> @@ -287,7 +286,6 @@ function Feed() { prevEmbed && AppBskyEmbedVideo.isView(prevEmbed) ? prevEmbed.playlist : null - const prevVideoModeration = prevSlice?.moderation const currSlice = videos.at(index) const currPost = currSlice?.post const currEmbed = currPost?.embed @@ -303,7 +301,6 @@ function Feed() { nextEmbed && AppBskyEmbedVideo.isView(nextEmbed) ? nextEmbed.playlist : null - const nextVideoModeration = nextSlice?.moderation const prevPlayerCurrentSource = currentSources[(index + 2) % 3] const currPlayerCurrentSource = currentSources[index % 3] @@ -357,25 +354,16 @@ function Feed() { if (prevVideo && prevVideo !== prevPlayerCurrentSource?.source) { currentSources[(index + 2) % 3] = { source: prevVideo, - moderation: prevVideoModeration, } } - if (currVideo && currVideo !== currPlayerCurrentSource?.source) { - // TODO should already been calculated, but just in case - // if (!nextVideoModeration && nextPost && moderationOpts) { - // nextVideoModeration = moderatePost(nextPost, moderationOpts) - // } currentSources[index % 3] = { source: currVideo, - moderation: currVideoModeration, } } - if (nextVideo && nextVideo !== nextPlayerCurrentSource?.source) { currentSources[(index + 1) % 3] = { source: nextVideo, - moderation: nextVideoModeration, } } @@ -707,13 +695,7 @@ function Overlay({ }, [player]) return ( - +