]> git.mxchange.org Git - friendica.git/commitdiff
Remove network exception in handle_tag
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Oct 2018 05:11:50 +0000 (01:11 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 17 Oct 2018 05:11:50 +0000 (01:11 -0400)
mod/item.php

index 053a00c977ba77f45482aebe52dda7c86154c102..4d798ac1e55fac55bbf0351ce873781f4450170c 100644 (file)
@@ -1015,11 +1015,7 @@ function handle_tag(App $a, &$body, &$inform, &$str_tags, $profile_uid, $tag, $n
 
                        $profile = $contact["url"];
                        $alias   = $contact["alias"];
-                       $newname = $contact["nick"];
-
-                       if (($newname == "") || !in_array($contact["network"], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::TWITTER, Protocol::STATUSNET])) {
-                               $newname = $contact["name"];
-                       }
+                       $newname = defaults($contact, "name", $contact["nick"]);
                }
 
                //if there is an url for this persons profile