summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/postnotice.php3
-rw-r--r--actions/updateprofile.php2
2 files changed, 5 insertions, 0 deletions
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) {
diff --git a/actions/updateprofile.php b/actions/updateprofile.php
index e416a6fa9..dfc31f542 100644
--- a/actions/updateprofile.php
+++ b/actions/updateprofile.php
@@ -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');