From 1ca58968f273df183fdd81f15b65d3fdb1914964 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 29 May 2021 14:32:31 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- src/Module/Api/Mastodon/Lists.php | 2 +- src/Module/Api/Mastodon/Statuses.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Lists.php b/src/Module/Api/Mastodon/Lists.php index 38a9c16640..67db0b81f2 100644 --- a/src/Module/Api/Mastodon/Lists.php +++ b/src/Module/Api/Mastodon/Lists.php @@ -80,7 +80,7 @@ class Lists extends BaseApi { $request = self::getRequest([ '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'])) { diff --git a/src/Module/Api/Mastodon/Statuses.php b/src/Module/Api/Mastodon/Statuses.php index 0699c41087..8e13afb2fa 100644 --- a/src/Module/Api/Mastodon/Statuses.php +++ b/src/Module/Api/Mastodon/Statuses.php @@ -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 '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. - '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. 'language' => '', // ISO 639 language code for this status. ]);