feat: don't render notification messages as errors
This commit is contained in:
@@ -20,12 +20,6 @@ class Notification
|
||||
return true;
|
||||
}
|
||||
|
||||
// These weird and contradictory looking assertions are required because
|
||||
// of the stupid API implementation that doesn't distinguish between error
|
||||
// and success responses.
|
||||
$responseIsError = 100 <= $this->code || $this->message === 'Daten konnten nicht gesendet werden.';
|
||||
$responseIsSuccess = 650 === $this->code && false === stripos($this->message, 'fehler');
|
||||
|
||||
return false === $responseIsError && true === $responseIsSuccess;
|
||||
return 650 === $this->code && false === stripos($this->message, 'fehler');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user