diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 9278ed8b3..2cc46d2b7 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -1161,7 +1161,7 @@ class Helpers { $res = self::fetchProfileFromUrl($url); - if (! self::isValidProfileData($res, $url)) { + if (! $res || ! self::isValidProfileData($res, $url)) { return null; }