diff options
author | Evan Prodromou <evan@status.net> | 2010-03-18 20:57:38 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-18 20:57:38 -0500 |
commit | ac609e804078cf70fcc02b36aa1eb40115354715 (patch) | |
tree | c206723a0fe28fd62f8d2838f589a42ec7523af5 /actions/apistatusesupdate.php | |
parent | 17c50f338ceb574780476f6b788f48e2d7d06017 (diff) | |
parent | 4a6c9e445149e42a4f81d5140296e7770c60bc6c (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Conflicts:
plugins/OStatus/extlib/hkit/hkit.class.php
plugins/OStatus/lib/discoveryhints.php
Diffstat (limited to 'actions/apistatusesupdate.php')
-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); |