extract "BaseApi::checkDefaults()" method for later usage
This commit is contained in:
committed by
Hypolite Petovan
parent
d21108fe0e
commit
f580d8e5c0
@@ -46,7 +46,7 @@ class Statuses extends BaseApi
|
||||
self::checkAllowedScope(self::SCOPE_WRITE);
|
||||
$uid = self::getCurrentUserID();
|
||||
|
||||
$request = self::getRequest([
|
||||
$request = $this->getRequest([
|
||||
'status' => '', // Text content of the status. If media_ids is provided, this becomes optional. Attaching a poll is optional while status is provided.
|
||||
'media_ids' => [], // Array of Attachment ids to be attached as media. If provided, status becomes optional, and poll cannot be used.
|
||||
'poll' => [], // Poll data. If provided, media_ids cannot be used, and poll[expires_in] must be provided.
|
||||
|
||||
Reference in New Issue
Block a user