Skip to content
Snippets Groups Projects
Commit f77b65b7 authored by Manuel Adán's avatar Manuel Adán Committed by Manuel Adán
Browse files

Issue #3364945 by manuel.adan: Set private shortcut set name accordingly to the user context

parent 6c576251
Branches 1.0.x
No related tags found
No related merge requests found
......@@ -96,7 +96,9 @@ class PrivateShortcutSetStorage extends ShortcutSetStorage implements PrivateSho
else {
$shortcut_set = $this->create([
'id' => $set_id,
'label' => (string) $this->t("@user's private", ['@user' => ucfirst($account->getDisplayName())]),
'label' => $account->id() == $this->currentUser->id()
? $this->t('Private')
: $this->t("User's private"),
]);
$this->memoryCache->set($this->buildCacheId($set_id), $shortcut_set, MemoryCacheInterface::CACHE_PERMANENT, [$this->memoryCacheTag]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment