diff options
author | Eric Bailey <git@esb.lol> | 2024-06-25 17:43:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-25 23:43:41 +0100 |
commit | dd2e173514b9aa22b898c5539f4f83f10d9b09f4 (patch) | |
tree | fb58aba1bf649e3b013445fd0b8623d38dfbd86a /src/components/FeedCard.tsx | |
parent | 7c5ff79c8e545962502e87f3c6c734fb9b05970c (diff) | |
download | voidsky-dd2e173514b9aa22b898c5539f4f83f10d9b09f4.tar.zst |
Add back pin action for feed cards (#4643)
Diffstat (limited to 'src/components/FeedCard.tsx')
-rw-r--r-- | src/components/FeedCard.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/FeedCard.tsx b/src/components/FeedCard.tsx index ecf0a1b91..e0fc7ef54 100644 --- a/src/components/FeedCard.tsx +++ b/src/components/FeedCard.tsx @@ -233,7 +233,11 @@ export function Action({ purpose?: AppBskyGraphDefs.ListView['purpose'] }) { const {hasSession} = useSession() - if (!hasSession || purpose !== 'app.bsky.graph.defs#curatelist') return null + if ( + !hasSession || + (type === 'list' && purpose !== 'app.bsky.graph.defs#curatelist') + ) + return null return <ActionInner uri={uri} pin={pin} type={type} /> } |