Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix long-press loophole for disabled quote posts (#8502)

* fix loophole for disabled quote posts

* show dialog instead

authored by

Samuel Newman and committed by
GitHub
585dbebb 5c50e102

+13 -2
+13 -2
src/components/PostControls/RepostButton.tsx
··· 40 40 const requireAuth = useRequireAuth() 41 41 const dialogControl = Dialog.useDialogControl() 42 42 43 + const onPress = () => requireAuth(() => dialogControl.open()) 44 + 45 + const onLongPress = () => 46 + requireAuth(() => { 47 + if (embeddingDisabled) { 48 + dialogControl.open() 49 + } else { 50 + onQuote() 51 + } 52 + }) 53 + 43 54 return ( 44 55 <> 45 56 <PostControlButton ··· 47 58 active={isReposted} 48 59 activeColor={t.palette.positive_600} 49 60 big={big} 50 - onPress={() => requireAuth(() => dialogControl.open())} 51 - onLongPress={() => requireAuth(() => onQuote())} 61 + onPress={onPress} 62 + onLongPress={onLongPress} 52 63 label={ 53 64 isReposted 54 65 ? _(