X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapifriendshipscreate.php;h=3997a8b51c4161d48621e0112bb143fe7683903f;hb=4d17d9533552ea620b83109c550e250a5c236291;hp=e7caf9686914b7720eeec02dca120ba5856b5119;hpb=afbb3ec37a32314d55e2163da4a2958bf3a6eba9;p=quix0rs-gnu-social.git diff --git a/actions/apifriendshipscreate.php b/actions/apifriendshipscreate.php index e7caf96869..3997a8b51c 100644 --- a/actions/apifriendshipscreate.php +++ b/actions/apifriendshipscreate.php @@ -100,8 +100,8 @@ class ApiFriendshipsCreateAction extends ApiAuthAction try { Subscription::start($this->scoped, $this->other); - } catch (Exception $e) { - $this->clientError($e->getMessage(), 403); + } catch (AlreadyFulfilledException $e) { + $this->clientError($e->getMessage(), 409); } $this->initDocument($this->format);