]> Untitled Git - lemmy-ui.git/commitdiff
Only show 'saved' tab on own profile page
authorFlorian Heft <flo@fam-heft.de>
Fri, 9 Jun 2023 23:08:08 +0000 (01:08 +0200)
committerFlorian Heft <flo@fam-heft.de>
Fri, 9 Jun 2023 23:08:08 +0000 (01:08 +0200)
* Users can't view saved posts of other users.
* fixes #1090

src/shared/components/person/profile.tsx

index 42c7c306ccf54a47d3a741506bc976e8cf609de4..81186504eac2312f0b25d9bbef887f816ee37259 100644 (file)
@@ -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)}
       </div>
     );
   }