From d82cc0653e4383f645c57f133a713990e1726245 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Wed, 22 Jan 2025 00:40:15 +0000 Subject: [PATCH] Clearer condition --- src/view/com/posts/PostFeed.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/view/com/posts/PostFeed.tsx b/src/view/com/posts/PostFeed.tsx index 0ecd10fc03..c50d7f9797 100644 --- a/src/view/com/posts/PostFeed.tsx +++ b/src/view/com/posts/PostFeed.tsx @@ -648,18 +648,18 @@ let PostFeed = ({ ) } else if (row.type === 'videoGridRow') { - let sourceContext: VideoFeedSourceContext = { - type: 'feedgen', - uri: row.sourceFeedUri, - sourceInterstitial: feedCacheKey ?? 'none', - } - + let sourceContext: VideoFeedSourceContext if (feedType === 'author') { sourceContext = { type: 'author', did: feedUriOrActorDid, filter: feedTab as AuthorFilter, - sourceInterstitial: 'none', + } + } else { + sourceContext = { + type: 'feedgen', + uri: row.sourceFeedUri, + sourceInterstitial: feedCacheKey ?? 'none', } }