]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
send smaller error pages for OMB API endpoints
authorEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 19:40:39 +0000 (14:40 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 1 Mar 2010 23:03:18 +0000 (18:03 -0500)
actions/postnotice.php
actions/updateprofile.php

index fb0670376651ed145b0ea8ea7673eb3f7e07d30a..f092d54d1ddf05cab5799d3245174f98cd43a6ea 100644 (file)
@@ -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) {
index e416a6fa93dbd881ab152249d1abed50dfd2ff52..dfc31f54273e25ebb8615b7dca51de2d18bddc3c 100644 (file)
@@ -55,6 +55,8 @@ class UpdateprofileAction extends Action
      */
     function prepare($argarray)
     {
+        StatusNet::setApi(true); // Send smaller error pages
+
         parent::prepare($argarray);
         $license      = $_POST['omb_listenee_license'];
         $site_license = common_config('license', 'url');