Skip to content

Commit d6fb1d5

Browse files
authored
Merge pull request #1814 from HuanFengYeh/1782-restrict-following-private-users
Add user privacy check to hide FollowUserButton for private users
2 parents 4bd110b + 102430e commit d6fb1d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/search/testimony/TestimonyHit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const TestimonyResult = ({ hit }: { hit: Hit<Testimony> }) => {
7474
<span style={{ flexGrow: 1 }}>
7575
<b>Written by {writtenBy}</b>
7676
</span>
77-
{!isCurrentUser && followOrg && user && (
77+
{hit.public && !isCurrentUser && followOrg && user && (
7878
<FollowUserButton profileId={hit.authorUid} />
7979
)}
8080
</div>

0 commit comments

Comments
 (0)