We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 29b45bb8 authored by mattl's avatar mattl

Unnecessary call to User::getKV

parent 8ab98b72
...@@ -760,8 +760,6 @@ function common_find_mentions($text, Profile $sender, Notice $parent=null) ...@@ -760,8 +760,6 @@ function common_find_mentions($text, Profile $sender, Notice $parent=null)
} }
if ($mentioned instanceof Profile) { if ($mentioned instanceof Profile) {
$user = User::getKV('id', $mentioned->id);
try { try {
$url = $mentioned->getUrl(); $url = $mentioned->getUrl();
} catch (InvalidUrlException $e) { } catch (InvalidUrlException $e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment