From cc47243733d248f8e84dccd2247c23329ca64969 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 23 Jun 2021 21:21:33 -0600 Subject: [PATCH] Update Inbox --- app/Util/ActivityPub/Inbox.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 54df47ad8..18f911bfd 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -435,9 +435,14 @@ class Inbox if(!$actor || !$target) { return; } + $actor = Helpers::profileFetch($actor); $target = Helpers::profileFetch($target); + if(!$actor || !$target) { + return; + } + $request = FollowRequest::whereFollowerId($actor->id) ->whereFollowingId($target->id) ->whereIsRejected(false)