diff options
author | Joas Schilling <coding@schilljs.com> | 2022-08-18 09:58:04 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-08-19 12:06:20 +0200 |
commit | fa2dfc51e6d4f75950f777bb7b2d607004c1f2f7 (patch) | |
tree | 361f7dfa5b6c782c3f016ff8c77885910547fc94 /lib | |
parent | 659c2ba7ff5bad286f9ed3f456b5759b0906c8c6 (diff) |
Use user displayname cache in mention rendering
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Chat/Parser/UserMention.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Chat/Parser/UserMention.php b/lib/Chat/Parser/UserMention.php index 531dbd037..724398bdf 100644 --- a/lib/Chat/Parser/UserMention.php +++ b/lib/Chat/Parser/UserMention.php @@ -91,8 +91,8 @@ class UserMention { } if ($mention['type'] === 'user') { - $user = $this->userManager->get($mention['id']); - if (!$user instanceof IUser) { + $userDisplayName = $this->userManager->getDisplayName($mention['id']); + if ($userDisplayName === null) { continue; } } |