From f8931dc7cde60c166a79a254105e455fc9c411a1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 6 Apr 2022 01:01:10 -0600 Subject: [PATCH] Update AP Inbox, fixes #3332 --- app/Util/ActivityPub/Inbox.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index dd0182d2c..e6cd96a98 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -623,7 +623,10 @@ class Inbox break; case 'Tombstone': - $profile = Helpers::profileFetch($actor); + $profile = Profile::whereRemoteUrl($actor)->first(); + if(!$profile || $profile->private_key != null) { + return; + } $status = Status::whereProfileId($profile->id) ->whereUri($id) ->orWhere('url', $id)