Get avatar out of entry properly
This commit is contained in:
parent
624584f9df
commit
6861d2f3a1
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user