summaryrefslogtreecommitdiff
path: root/lib/facebookaction.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-10-01 11:30:04 -0400
committerEvan Prodromou <evan@status.net>2009-10-01 11:30:04 -0400
commita41ed1a66a902b078876be7528183ab61e6a3d03 (patch)
treedb690c52820ebd4aefae6222cb4f3b48c2d9398f /lib/facebookaction.php
parent3449843f839b6c17618b27b031c608860761cd32 (diff)
parentacc78972383c2346b5729192ab00c90c48c5b2a6 (diff)
Merge branch '0.9.x' into schema
Diffstat (limited to 'lib/facebookaction.php')
-rw-r--r--lib/facebookaction.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index 411f79594..3f3a8d3b0 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -468,11 +468,11 @@ class FacebookAction extends Action
$replyto = $this->trimmed('inreplyto');
- $notice = Notice::saveNew($user->id, $content,
- 'web', 1, ($replyto == 'false') ? null : $replyto);
-
- if (is_string($notice)) {
- $this->showPage($notice);
+ try {
+ $notice = Notice::saveNew($user->id, $content,
+ 'web', 1, ($replyto == 'false') ? null : $replyto);
+ } catch (Exception $e) {
+ $this->showPage($e->getMessage());
return;
}