Add back pin action for feed cards (#4643)
parent
7c5ff79c8e
commit
dd2e173514
|
@ -233,7 +233,11 @@ export function Action({
|
||||||
purpose?: AppBskyGraphDefs.ListView['purpose']
|
purpose?: AppBskyGraphDefs.ListView['purpose']
|
||||||
}) {
|
}) {
|
||||||
const {hasSession} = useSession()
|
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} />
|
return <ActionInner uri={uri} pin={pin} type={type} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue