diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-18 15:39:04 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-18 15:39:04 -0700 |
commit | b149b88953d6d071066a12a7c96eac6970664a88 (patch) | |
tree | ab60e0478e43300998299fe4bf1a27b513d3e76a | |
parent | c8e3d08a8fb139003ae425e8b80296215f071b25 (diff) | |
parent | 109aac3c49041e9323f74d9a9660186de069176d (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
-rw-r--r-- | actions/apistatusesupdate.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php index bf367e1e1..1956c8586 100644 --- a/actions/apistatusesupdate.php +++ b/actions/apistatusesupdate.php @@ -244,11 +244,17 @@ class ApiStatusesUpdateAction extends ApiAuthAction $options = array_merge($options, $locOptions); } - $this->notice = - Notice::saveNew($this->auth_user->id, - $content, - $this->source, - $options); + try { + $this->notice = Notice::saveNew( + $this->auth_user->id, + $content, + $this->source, + $options + ); + } catch (Exception $e) { + $this->clientError($e->getMessage()); + return; + } if (isset($upload)) { $upload->attachToNotice($this->notice); |