Get avatar out of entry properly

This commit is contained in:
Stephen Paul Weber 2016-06-10 21:02:34 +00:00
parent 624584f9df
commit 6861d2f3a1
1 changed files with 2 additions and 2 deletions

View 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());
}