forked from GNUsocial/gnu-social
Fix author fallback
Previously if there was no discernable author the nickname "Array" would end up used. This was a bug, obviously. It is fixed now.
This commit is contained in:
parent
c67b89e56b
commit
9dc4f13579
@ -284,7 +284,7 @@ function linkback_profile($entry, $mf2, $response, $target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!$author) {
|
if(!$author) {
|
||||||
$author = array('name' => array($entry['name']));
|
$author = array('name' => $entry['name']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$author['url']) {
|
if(!$author['url']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user