From 6861d2f3a1e6e2bd15b884fb217b45d9b625ee10 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Fri, 10 Jun 2016 21:02:34 +0000 Subject: [PATCH] Get avatar out of entry properly --- plugins/Linkback/lib/util.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }