Commit 90689008 authored by Evan Prodromou's avatar Evan Prodromou

send smaller error pages for OMB API endpoints

parent 486cbac5
...@@ -54,7 +54,10 @@ class PostnoticeAction extends Action ...@@ -54,7 +54,10 @@ class PostnoticeAction extends Action
*/ */
function prepare($argarray) function prepare($argarray)
{ {
StatusNet::setApi(true); // Send smaller error pages
parent::prepare($argarray); parent::prepare($argarray);
try { try {
$this->checkNotice(); $this->checkNotice();
} catch (Exception $e) { } catch (Exception $e) {
......
...@@ -55,6 +55,8 @@ class UpdateprofileAction extends Action ...@@ -55,6 +55,8 @@ class UpdateprofileAction extends Action
*/ */
function prepare($argarray) function prepare($argarray)
{ {
StatusNet::setApi(true); // Send smaller error pages
parent::prepare($argarray); parent::prepare($argarray);
$license = $_POST['omb_listenee_license']; $license = $_POST['omb_listenee_license'];
$site_license = common_config('license', 'url'); $site_license = common_config('license', 'url');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment