]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix author fallback
authorStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 26 Feb 2016 22:06:04 +0000 (22:06 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 26 Feb 2016 22:06:04 +0000 (22:06 +0000)
Previously if there was no discernable author the nickname "Array"
would end up used.  This was a bug, obviously.  It is fixed now.

plugins/Linkback/lib/util.php

index 2f024dd2338a4d4a838d13b1feb94bad40a9d67a..cd0476ceef18a83a9bedf7c0008eb3547541bd2e 100644 (file)
@@ -284,7 +284,7 @@ function linkback_profile($entry, $mf2, $response, $target) {
     }
 
     if(!$author) {
-        $author = array('name' => array($entry['name']));
+        $author = array('name' => $entry['name']);
     }
 
     if(!$author['url']) {