mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
return if we could not fetch the author
This commit is contained in:
@@ -1234,17 +1234,16 @@ class Libzot {
|
||||
if ($z) {
|
||||
$r = Activity::get_actor_hublocs($author_url);
|
||||
}
|
||||
|
||||
if (!$r) {
|
||||
logger('Could not fetch author');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ($r) {
|
||||
$r = self::zot_record_preferred($r);
|
||||
$item['author_xchan'] = $r['hubloc_hash'];
|
||||
}
|
||||
$r = self::zot_record_preferred($r);
|
||||
|
||||
if (! $item['author_xchan']) {
|
||||
logger('No author!');
|
||||
return;
|
||||
}
|
||||
$item['author_xchan'] = $r['hubloc_hash'];
|
||||
|
||||
$item['owner_xchan'] = $env['sender'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user