From 2bbecfe8dd44bd51a3425ee667859946f6ac0763 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 14 Jan 2024 10:11:20 +0000 Subject: only attempt fetch if zotfinger actually returned something --- Zotlabs/Lib/ActivityStreams.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Lib/ActivityStreams.php') diff --git a/Zotlabs/Lib/ActivityStreams.php b/Zotlabs/Lib/ActivityStreams.php index 98fc73462..f0fb7c9ae 100644 --- a/Zotlabs/Lib/ActivityStreams.php +++ b/Zotlabs/Lib/ActivityStreams.php @@ -327,9 +327,10 @@ class ActivityStreams { if ($x === null && strpos($url, '/channel/')) { // look for other nomadic channels which might be alive $zf = Zotfinger::exec($url, $channel); - - $url = $zf['signature']['signer']; - $x = Activity::fetch($url, $channel); + if ($zf) { + $url = $zf['signature']['signer']; + $x = Activity::fetch($url, $channel); + } } } -- cgit v1.2.3