diff --git a/app/Services/Twitter/OAuthTwitter.php b/app/Services/Twitter/OAuthTwitter.php index de1685e..25c5a6e 100644 --- a/app/Services/Twitter/OAuthTwitter.php +++ b/app/Services/Twitter/OAuthTwitter.php @@ -15,7 +15,7 @@ public function tweet(string $text): ?array { $response = $this->twitter->post('tweets', compact('text'), true); - if ($this->twitter->getLastHttpCode() > 200) { + if ($this->twitter->getLastHttpCode() > 201) { throw TwitterException::general($this->twitter->getLastHttpCode(), json_encode($response) ?? $response->title); }