1
0
Daniel Supernault 3 жил өмнө
parent
commit
f8931dc7cd

+ 4 - 1
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)