mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 01:36:43 +00:00
Update InboxValidator
This commit is contained in:
parent
938e721e91
commit
011e2c964c
1 changed files with 5 additions and 4 deletions
|
@ -23,6 +23,9 @@ class InboxValidator implements ShouldQueue
|
||||||
protected $headers;
|
protected $headers;
|
||||||
protected $payload;
|
protected $payload;
|
||||||
|
|
||||||
|
public $timeout = 5;
|
||||||
|
public $tries = 1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new job instance.
|
* Create a new job instance.
|
||||||
*
|
*
|
||||||
|
@ -61,11 +64,9 @@ class InboxValidator implements ShouldQueue
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->verifySignature($headers, $profile, $payload) == true) {
|
if($this->verifySignature($headers, $profile, $payload) == true) {
|
||||||
dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload));
|
(new Inbox($headers, $profile, $payload))->handle()
|
||||||
return;
|
|
||||||
} else if($this->blindKeyRotation($headers, $profile, $payload) == true) {
|
} else if($this->blindKeyRotation($headers, $profile, $payload) == true) {
|
||||||
dispatch(new \App\Jobs\InboxPipeline\InboxWorker($headers, $profile, $payload));
|
(new Inbox($headers, $profile, $payload))->handle()
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue