Browse Source

Merge pull request #5421 from pixelfed/staging

Update Helpers
daniel 6 tháng trước cách đây
mục cha
commit
bf6988d67a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Util/ActivityPub/Helpers.php

+ 1 - 1
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;
         }