From 29b45bb87a63e25f7298e43529edf8b407f38257 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 20:08:17 +0100 Subject: [PATCH] Unnecessary call to User::getKV --- lib/util.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/util.php b/lib/util.php index 81270baef3..157d36c71c 100644 --- a/lib/util.php +++ b/lib/util.php @@ -760,8 +760,6 @@ function common_find_mentions($text, Profile $sender, Notice $parent=null) } if ($mentioned instanceof Profile) { - $user = User::getKV('id', $mentioned->id); - try { $url = $mentioned->getUrl(); } catch (InvalidUrlException $e) { -- 2.39.5