From: Florian Heft Date: Fri, 9 Jun 2023 23:08:08 +0000 (+0200) Subject: Only show 'saved' tab on own profile page X-Git-Url: http://these/git/%22https:/nerdica.net/README.md?a=commitdiff_plain;h=b54be0586d4559ed0e4a22c60dcf1409f77b4e22;p=lemmy-ui.git Only show 'saved' tab on own profile page * Users can't view saved posts of other users. * fixes #1090 --- diff --git a/src/shared/components/person/profile.tsx b/src/shared/components/person/profile.tsx index 42c7c30..8118650 100644 --- a/src/shared/components/person/profile.tsx +++ b/src/shared/components/person/profile.tsx @@ -317,7 +317,7 @@ export class Profile extends Component< {this.getRadio(PersonDetailsView.Overview)} {this.getRadio(PersonDetailsView.Comments)} {this.getRadio(PersonDetailsView.Posts)} - {this.getRadio(PersonDetailsView.Saved)} + {this.amCurrentUser && this.getRadio(PersonDetailsView.Saved)} ); }