From 1414b6b84954939b2f120443ab90a75d1ffb2a65 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 1 Mar 2010 14:40:39 -0500 Subject: send smaller error pages for OMB API endpoints --- actions/postnotice.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'actions/postnotice.php') 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) { -- cgit v1.2.3-54-g00ecf