return if we could not fetch the author

This commit is contained in:
Mario Vavti
2023-12-14 12:06:50 +01:00
parent d6120fc908
commit 062d61567e

View File

@@ -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'];