From 34e7d8ddf2cc95de329789eb67513d77e6245b28 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 14 Mar 2011 13:44:39 -0700 Subject: [PATCH] For good measure; trip short error mode in earlier on ajax shownotice --- actions/shownotice.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/shownotice.php b/actions/shownotice.php index 8d8ab326df..b8927372bb 100644 --- a/actions/shownotice.php +++ b/actions/shownotice.php @@ -78,6 +78,9 @@ class ShownoticeAction extends OwnerDesignAction function prepare($args) { parent::prepare($args); + if ($this->boolean('ajax')) { + StatusNet::setApi(true); + } $id = $this->arg('notice'); @@ -189,7 +192,6 @@ class ShownoticeAction extends OwnerDesignAction parent::handle($args); if ($this->boolean('ajax')) { - StatusNet::setApi(true); $this->showAjax(); } else { if ($this->notice->is_local == Notice::REMOTE_OMB) { -- 2.39.5