From: Stephen Paul Weber Date: Fri, 10 Jun 2016 21:02:34 +0000 (+0000) Subject: Get avatar out of entry properly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6861d2f3a1e6e2bd15b884fb217b45d9b625ee10;p=quix0rs-gnu-social.git Get avatar out of entry properly --- diff --git a/plugins/Linkback/lib/util.php b/plugins/Linkback/lib/util.php index f89389fc62..62b80ec19f 100644 --- a/plugins/Linkback/lib/util.php +++ b/plugins/Linkback/lib/util.php @@ -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()); }