Explorar el Código

Update AP helpers

Daniel Supernault hace 2 años
padre
commit
08d64ede16
Se han modificado 1 ficheros con 5 adiciones y 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) {