forked from mirror/pixelfed
Update inbox workers, fixes #3304
This commit is contained in:
parent
b464021058
commit
cd4f73bed9
|
@ -59,7 +59,7 @@ class InboxValidator implements ShouldQueue
|
|||
// Job processed already
|
||||
return 1;
|
||||
}
|
||||
Cache::put($lockKey, 1, 300);
|
||||
Cache::put($lockKey, 1, 3600);
|
||||
}
|
||||
|
||||
if(!isset($headers['signature']) || !isset($headers['date'])) {
|
||||
|
@ -155,6 +155,9 @@ class InboxValidator implements ShouldQueue
|
|||
) {
|
||||
return;
|
||||
}
|
||||
if(!isset($bodyDecoded['id'])) {
|
||||
return;
|
||||
}
|
||||
$signatureData = HttpSignature::parseSignatureHeader($signature);
|
||||
$keyId = Helpers::validateUrl($signatureData['keyId']);
|
||||
$id = Helpers::validateUrl($bodyDecoded['id']);
|
||||
|
|
|
@ -55,7 +55,7 @@ class InboxWorker implements ShouldQueue
|
|||
// Job processed already
|
||||
return 1;
|
||||
}
|
||||
Cache::put($lockKey, 1, 300);
|
||||
Cache::put($lockKey, 1, 3600);
|
||||
}
|
||||
|
||||
if(!isset($headers['signature']) || !isset($headers['date'])) {
|
||||
|
@ -145,6 +145,9 @@ class InboxWorker implements ShouldQueue
|
|||
) {
|
||||
return;
|
||||
}
|
||||
if(!isset($bodyDecoded['id'])) {
|
||||
return;
|
||||
}
|
||||
$signatureData = HttpSignature::parseSignatureHeader($signature);
|
||||
$keyId = Helpers::validateUrl($signatureData['keyId']);
|
||||
$id = Helpers::validateUrl($bodyDecoded['id']);
|
||||
|
|
Loading…
Reference in New Issue