]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Sat, 29 May 2021 12:32:31 +0000 (14:32 +0200)
committerGitHub <noreply@github.com>
Sat, 29 May 2021 12:32:31 +0000 (14:32 +0200)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Api/Mastodon/Lists.php
src/Module/Api/Mastodon/Statuses.php

index 38a9c16640ffedc1ed9889292ee065752ad21d29..67db0b81f2e78e16229476f4c3a7293014c8b195 100644 (file)
@@ -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'])) {
index 0699c410879b7dfd905378c8a316df06d8e72e08..8e13afb2fadc0450a412ec9747b56d24fc54d679 100644 (file)
@@ -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.
                ]);