mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 08:13:16 +00:00
Update InboxValidator
This commit is contained in:
parent
b05325ab5b
commit
c75be9fb38
1 changed files with 4 additions and 4 deletions
|
@ -70,8 +70,8 @@ class InboxValidator implements ShouldQueue
|
||||||
{
|
{
|
||||||
$body = $this->payload;
|
$body = $this->payload;
|
||||||
$bodyDecoded = $payload;
|
$bodyDecoded = $payload;
|
||||||
$signature = $headers['signature'];
|
$signature = is_array($headers['signature']) ? $headers['signature'][0] : $headers['signature'];
|
||||||
$date = $headers['date'];
|
$date = is_array($headers['date']) ? $headers['date'][0] : $headers['date'];
|
||||||
if(!$signature) {
|
if(!$signature) {
|
||||||
abort(400, 'Missing signature header');
|
abort(400, 'Missing signature header');
|
||||||
}
|
}
|
||||||
|
@ -116,8 +116,8 @@ class InboxValidator implements ShouldQueue
|
||||||
|
|
||||||
protected function blindKeyRotation($headers, $profile, $payload)
|
protected function blindKeyRotation($headers, $profile, $payload)
|
||||||
{
|
{
|
||||||
$signature = $headers['signature'];
|
$signature = is_array($headers['signature']) ? $headers['signature'][0] : $headers['signature'];
|
||||||
$date = $headers['date'];
|
$date = is_array($headers['date']) ? $headers['date'][0] : $headers['date'];
|
||||||
if(!$signature) {
|
if(!$signature) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue