aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-12-14 12:06:50 +0100
committerMario Vavti <mario@mariovavti.com>2023-12-14 12:06:50 +0100
commit062d61567ec83c421e4de4aace931852ff8359e6 (patch)
tree69e3372ac63052ce413f2471b3f42aa72d465a5c /Zotlabs/Lib/Libzot.php
parentd6120fc908dd73222e5b0a088b36b0cdaccbbbc9 (diff)
downloadvolse-hubzilla-062d61567ec83c421e4de4aace931852ff8359e6.tar.gz
volse-hubzilla-062d61567ec83c421e4de4aace931852ff8359e6.tar.bz2
volse-hubzilla-062d61567ec83c421e4de4aace931852ff8359e6.zip
return if we could not fetch the author
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php15
1 files changed, 7 insertions, 8 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index e9cb2c35c..3f8685397 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -1234,17 +1234,16 @@ class Libzot {
if ($z) {
$r = Activity::get_actor_hublocs($author_url);
}
- }
- if ($r) {
- $r = self::zot_record_preferred($r);
- $item['author_xchan'] = $r['hubloc_hash'];
+ if (!$r) {
+ logger('Could not fetch author');
+ return;
+ }
}
- if (! $item['author_xchan']) {
- logger('No author!');
- return;
- }
+ $r = self::zot_record_preferred($r);
+
+ $item['author_xchan'] = $r['hubloc_hash'];
$item['owner_xchan'] = $env['sender'];