about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-06-25 17:43:41 -0500
committerGitHub <noreply@github.com>2024-06-25 23:43:41 +0100
commitdd2e173514b9aa22b898c5539f4f83f10d9b09f4 (patch)
treefb58aba1bf649e3b013445fd0b8623d38dfbd86a /src
parent7c5ff79c8e545962502e87f3c6c734fb9b05970c (diff)
downloadvoidsky-dd2e173514b9aa22b898c5539f4f83f10d9b09f4.tar.zst
Add back pin action for feed cards (#4643)
Diffstat (limited to 'src')
-rw-r--r--src/components/FeedCard.tsx6
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} />
 }