Update InboxValidator

This commit is contained in:
Daniel Supernault 2021-01-14 18:54:13 -07:00
parent 51f8fe5bde
commit 36a722aa3c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 2 deletions

View File

@ -80,7 +80,8 @@ class InboxValidator implements ShouldQueue
$headers,
$payload,
$actor,
$hash
$hash,
$profile
) {
$key = 'ap:inbox:actor-delete-exists:' . $hash;
$actorDelete = Cache::remember($key, now()->addMinutes(15), function() use($actor) {
@ -89,7 +90,7 @@ class InboxValidator implements ShouldQueue
->exists();
});
if($actorDelete) {
if($this->verifySignature($headers, $payload) == true) {
if($this->verifySignature($headers, $profile, $payload) == true) {
Cache::set($key, false);
$profile = Profile::whereNotNull('domain')
->whereNull('status')