소스 검색

Update AP Inbox, fixes #3332

Daniel Supernault 3 년 전
부모
커밋
f8931dc7cd
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      app/Util/ActivityPub/Inbox.php

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