Better test to see if uploaded media exists
This commit is contained in:
parent
db7154c63b
commit
1d339bb118
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user