sforkowany z mirror/social
allow 200 and 202 as a valid status
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>alpha1
rodzic
1248d3fc80
commit
89848f8510
|
@ -296,7 +296,8 @@ class ActivityService {
|
|||
}
|
||||
|
||||
try {
|
||||
if ($this->getint('_code', $result, 500) === 202) {
|
||||
$accepted = [200, 202];
|
||||
if (in_array($this->getint('_code', $result, 500), $accepted)) {
|
||||
$this->queueService->endRequest($queue, true);
|
||||
} else {
|
||||
$this->queueService->endRequest($queue, false);
|
||||
|
|
Ładowanie…
Reference in New Issue