aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-11-02 15:43:56 -0700
committerChristopher Ng <chrng8@gmail.com>2023-11-02 15:43:56 -0700
commit7f530d22e14fbaa86141c875cdad094225f513b7 (patch)
tree2e4464a7f7a37360024c88679cee9615218ed384
parent321ac318c3cbbada96d667f8730c126cf1e4b4b8 (diff)
downloadnextcloud-server-7f530d22e14fbaa86141c875cdad094225f513b7.tar.gz
nextcloud-server-7f530d22e14fbaa86141c875cdad094225f513b7.zip
fix: Only highlight profile entry when viewing own profile
Signed-off-by: Christopher Ng <chrng8@gmail.com>
-rw-r--r--core/Controller/ProfilePageController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Controller/ProfilePageController.php b/core/Controller/ProfilePageController.php
index f8d9053edfa..e32f54a8ff7 100644
--- a/core/Controller/ProfilePageController.php
+++ b/core/Controller/ProfilePageController.php
@@ -106,7 +106,9 @@ class ProfilePageController extends Controller {
$this->profileManager->getProfileFields($targetUser, $visitingUser),
);
- $this->navigationManager->setActiveEntry('profile');
+ if ($targetUser === $visitingUser) {
+ $this->navigationManager->setActiveEntry('profile');
+ }
$this->eventDispatcher->dispatchTyped(new BeforeTemplateRenderedEvent($targetUserId));