aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2023-11-06 09:25:16 -0800
committerGitHub <noreply@github.com>2023-11-06 09:25:16 -0800
commit045e1528bd7012dd1bdd4cc39563fbce6fa70501 (patch)
tree472fc9eb66e19ab0fc5ca1e6a6eea58facd1896b /core
parentf412c8d8c91ef341dd4e7fbfb519b8b8ef04b8fe (diff)
parent7f530d22e14fbaa86141c875cdad094225f513b7 (diff)
downloadnextcloud-server-045e1528bd7012dd1bdd4cc39563fbce6fa70501.tar.gz
nextcloud-server-045e1528bd7012dd1bdd4cc39563fbce6fa70501.zip
Merge pull request #41251 from nextcloud/fix/profile-active
fix: Only highlight profile entry when viewing own profile
Diffstat (limited to 'core')
-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));