Unnecessary call to User::getKV

This commit is contained in:
Mikael Nordfeldth 2016-01-13 20:08:17 +01:00
parent 8ab98b72ac
commit 29b45bb87a

View File

@ -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) {