]> Untitled Git - lemmy-ui.git/commitdiff
Merge pull request #1140 from fheft/hide_saved_profile_tab
authorSleeplessOne1917 <abias1122@gmail.com>
Sat, 10 Jun 2023 00:50:14 +0000 (00:50 +0000)
committerGitHub <noreply@github.com>
Sat, 10 Jun 2023 00:50:14 +0000 (00:50 +0000)
Only show 'saved' tab on own profile page

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>
     );
   }