1
0
Daniel Supernault 4 жил өмнө
parent
commit
cc47243733

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

@@ -435,9 +435,14 @@ class Inbox
 		if(!$actor || !$target) {
 		if(!$actor || !$target) {
 			return;
 			return;
 		}
 		}
+
 		$actor = Helpers::profileFetch($actor);
 		$actor = Helpers::profileFetch($actor);
 		$target = Helpers::profileFetch($target);
 		$target = Helpers::profileFetch($target);
 
 
+		if(!$actor || !$target) {
+			return;
+		}
+
 		$request = FollowRequest::whereFollowerId($actor->id)
 		$request = FollowRequest::whereFollowerId($actor->id)
 			->whereFollowingId($target->id)
 			->whereFollowingId($target->id)
 			->whereIsRejected(false)
 			->whereIsRejected(false)