]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Unnecessary call to User::getKV
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 19:08:17 +0000 (20:08 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 19:08:17 +0000 (20:08 +0100)
lib/util.php

index 81270baef35b1f38c436404d3b2b6a50dc636cc1..157d36c71c228a6cf7377e2a0e024b11312f020b 100644 (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) {