Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

no follow self (#7606)

authored by

Samuel Newman and committed by
GitHub
ea932534 ebb6d5cc

+32 -30
+32 -30
src/screens/VideoFeed/index.tsx
··· 683 683 const {_} = useLingui() 684 684 const t = useTheme() 685 685 const {openComposer} = useComposerControls() 686 + const {currentAccount} = useSession() 686 687 const navigation = useNavigation<NavigationProp>() 687 688 const seekingAnimationSV = useSharedValue(0) 688 689 ··· 790 791 </View> 791 792 </Link> 792 793 {/* show button based on non-reactive version, so it doesn't hide on press */} 793 - {!post.author.viewer?.following && ( 794 - <Button 795 - label={ 796 - profile.viewer?.following 797 - ? _(msg`Following ${handle}`) 798 - : _(msg`Follow ${handle}`) 799 - } 800 - accessibilityHint={ 801 - profile.viewer?.following ? _(msg`Unfollow user`) : '' 802 - } 803 - size="small" 804 - variant="solid" 805 - color="secondary_inverted" 806 - style={[a.mb_xs]} 807 - onPress={() => 808 - profile.viewer?.following 809 - ? queueUnfollow() 810 - : queueFollow() 811 - }> 812 - {!!profile.viewer?.following && ( 813 - <ButtonIcon icon={CheckIcon} /> 814 - )} 815 - <ButtonText> 816 - {profile.viewer?.following ? ( 817 - <Trans>Following</Trans> 818 - ) : ( 819 - <Trans>Follow</Trans> 794 + {post.author.did !== currentAccount?.did && 795 + !post.author.viewer?.following && ( 796 + <Button 797 + label={ 798 + profile.viewer?.following 799 + ? _(msg`Following ${handle}`) 800 + : _(msg`Follow ${handle}`) 801 + } 802 + accessibilityHint={ 803 + profile.viewer?.following ? _(msg`Unfollow user`) : '' 804 + } 805 + size="small" 806 + variant="solid" 807 + color="secondary_inverted" 808 + style={[a.mb_xs]} 809 + onPress={() => 810 + profile.viewer?.following 811 + ? queueUnfollow() 812 + : queueFollow() 813 + }> 814 + {!!profile.viewer?.following && ( 815 + <ButtonIcon icon={CheckIcon} /> 820 816 )} 821 - </ButtonText> 822 - </Button> 823 - )} 817 + <ButtonText> 818 + {profile.viewer?.following ? ( 819 + <Trans>Following</Trans> 820 + ) : ( 821 + <Trans>Follow</Trans> 822 + )} 823 + </ButtonText> 824 + </Button> 825 + )} 824 826 </View> 825 827 {record?.text?.trim() && ( 826 828 <ExpandableRichTextView