forked from GNUsocial/gnu-social
send smaller error pages for OMB API endpoints
This commit is contained in:
parent
17c2c793a5
commit
1414b6b849
@ -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) {
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user