]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Get avatar out of entry properly
authorStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:02:34 +0000 (21:02 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Fri, 10 Jun 2016 21:02:34 +0000 (21:02 +0000)
plugins/Linkback/lib/util.php

index f89389fc62a8f14225ad69eea3a254c8f6dcaefe..62b80ec19feb91dd2e9428c9af7e97f1a99d120a 100644 (file)
@@ -281,8 +281,8 @@ function linkback_notice($source, $notice_or_user, $entry, $author, $mf2) {
 }
 
 function linkback_profile($entry, $mf2, $response, $target) {
-    if(isset($entry['properties']['author']) && isset($entry['properties']['author'][0]['properties'])) {
-        $author = $entry['properties']['author'][0]['properties'];
+    if(isset($entry['author']) && isset($entry['author'][0]['properties'])) {
+        $author = $entry['author'][0]['properties'];
     } else {
         $author = linkback_hcard($mf2, $response->getEffectiveUrl());
     }