Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
c3c6f3c8d3
commit
1ca58968f2
|
@ -80,7 +80,7 @@ class Lists extends BaseApi
|
||||||
{
|
{
|
||||||
$request = self::getRequest([
|
$request = self::getRequest([
|
||||||
'title' => '', // The title of the list to be updated.
|
'title' => '', // The title of the list to be updated.
|
||||||
'replies_policy' => '', // Enumerable oneOf followed list none.
|
'replies_policy' => '', // One of: "followed", "list", or "none".
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (empty($request['title']) || empty($parameters['id'])) {
|
if (empty($request['title']) || empty($parameters['id'])) {
|
||||||
|
|
|
@ -53,7 +53,7 @@ class Statuses extends BaseApi
|
||||||
'in_reply_to_id' => 0, // ID of the status being replied to, if status is a reply
|
'in_reply_to_id' => 0, // ID of the status being replied to, if status is a reply
|
||||||
'sensitive' => false, // Mark status and attached media as sensitive?
|
'sensitive' => false, // Mark status and attached media as sensitive?
|
||||||
'spoiler_text' => '', // Text to be shown as a warning or subject before the actual content. Statuses are generally collapsed behind this field.
|
'spoiler_text' => '', // Text to be shown as a warning or subject before the actual content. Statuses are generally collapsed behind this field.
|
||||||
'visibility' => '', // Visibility of the posted status. Enumerable oneOf public, unlisted, private, direct.
|
'visibility' => '', // Visibility of the posted status. One of: "public", "unlisted", "private" or "direct".
|
||||||
'scheduled_at' => '', // ISO 8601 Datetime at which to schedule a status. Providing this paramter will cause ScheduledStatus to be returned instead of Status. Must be at least 5 minutes in the future.
|
'scheduled_at' => '', // ISO 8601 Datetime at which to schedule a status. Providing this paramter will cause ScheduledStatus to be returned instead of Status. Must be at least 5 minutes in the future.
|
||||||
'language' => '', // ISO 639 language code for this status.
|
'language' => '', // ISO 639 language code for this status.
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user