summaryrefslogtreecommitdiff
path: root/actions/postnotice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-01 14:40:39 -0500
committerEvan Prodromou <evan@status.net>2010-03-01 18:03:18 -0500
commit1414b6b84954939b2f120443ab90a75d1ffb2a65 (patch)
tree1d12be4e58a617163b0723f54a73b3e16d10415b /actions/postnotice.php
parent17c2c793a5d9e1e7066715e57694678296f2221a (diff)
send smaller error pages for OMB API endpoints
Diffstat (limited to 'actions/postnotice.php')
-rw-r--r--actions/postnotice.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/postnotice.php b/actions/postnotice.php
index fb0670376..f092d54d1 100644
--- a/actions/postnotice.php
+++ b/actions/postnotice.php
@@ -54,7 +54,10 @@ class PostnoticeAction extends Action
*/
function prepare($argarray)
{
+ StatusNet::setApi(true); // Send smaller error pages
+
parent::prepare($argarray);
+
try {
$this->checkNotice();
} catch (Exception $e) {