X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapistatusesupdate.php;h=d5fc7c994589bec48bf6ddf7e83d66dace56a7f6;hb=1d339bb11820cb0f45849d6b379c134012a07afe;hp=7bc5d899ef96a57e5f0348c9758531509c97fd21;hpb=1ee79dc3791162f7ef9b92befaef597328266ce1;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesupdate.php b/actions/apistatusesupdate.php index 7bc5d899ef..d5fc7c9945 100644 --- a/actions/apistatusesupdate.php +++ b/actions/apistatusesupdate.php @@ -252,7 +252,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction $this->clientError($e->getMessage(), $e->getCode()); } - if (isset($upload)) { + if ($upload instanceof MediaFile) { $this->status .= ' ' . $upload->shortUrl(); /* Do not call shortenlinks until the whole notice has been build */ @@ -336,7 +336,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction */ function supported($cmd) { - static $cmdlist = array('MessageCommand', 'SubCommand', 'UnsubCommand', + static $cmdlist = array('SubCommand', 'UnsubCommand', 'OnCommand', 'OffCommand', 'JoinCommand', 'LeaveCommand'); $supported = null;