Explorar o código

Update AP helpers

Daniel Supernault %!s(int64=2) %!d(string=hai) anos
pai
achega
08d64ede16
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Util/ActivityPub/Helpers.php

+ 5 - 0
app/Util/ActivityPub/Helpers.php

@@ -400,6 +400,11 @@ class Helpers {
 		}
 
 		$profile = self::profileFirstOrNew($attributedTo);
+
+		if(!$profile) {
+			return;
+		}
+
 		if(isset($activity['object']['inReplyTo']) && !empty($activity['object']['inReplyTo']) || $replyTo == true) {
 			$reply_to = self::statusFirstOrFetch(self::pluckval($activity['object']['inReplyTo']), false);
 			if($reply_to) {