Add back pin action for feed cards (#4643)

zio/stable
Eric Bailey 2024-06-25 17:43:41 -05:00 committed by GitHub
parent 7c5ff79c8e
commit dd2e173514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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} />
}