]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
For good measure; trip short error mode in earlier on ajax shownotice
authorBrion Vibber <brion@pobox.com>
Mon, 14 Mar 2011 20:44:39 +0000 (13:44 -0700)
committerBrion Vibber <brion@pobox.com>
Mon, 14 Mar 2011 20:44:39 +0000 (13:44 -0700)
actions/shownotice.php

index 8d8ab326df249e7fcaf58a218e44312180554d4e..b8927372bb10d1c72e83da54ab66ec052d4944b3 100644 (file)
@@ -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) {