Format docstring for visibility parameter

Without this change it is easy to get confused while reading the online docs.

https://mastodonpy.readthedocs.io/en/stable/05_statuses.html#status-post
pull/362/head
Ashwin V. Mohanan 2023-11-16 09:11:11 +01:00 zatwierdzone przez GitHub
rodzic cd86887d88
commit 836f3c8283
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -199,15 +199,16 @@ class Mastodon(Internals):
should be marked as sensitive, which hides it by default on the Mastodon
web front-end.
The visibility parameter is a string value and accepts any of:
'direct' - post will be visible only to mentioned users
'private' - post will be visible only to followers
'unlisted' - post will be public but not appear on the public timeline
'public' - post will be public
The `visibility` parameter is a string value and accepts any of:
* ``'direct'`` - post will be visible only to **mentioned users**
* ``'private'`` - post will be visible only to **followers**
* ``'unlisted'`` - post will be **public but not appear on the public timeline**
* ``'public'`` - post will be **public**
If not passed in, visibility defaults to match the current account's
If not passed in, `visibility` defaults to match the current account's
default-privacy setting (starting with Mastodon version 1.6) or its
locked setting - private if the account is locked, public otherwise
locked setting - ``'private'`` if the account is locked, ``'public'`` otherwise
(for Mastodon versions lower than 1.6).
The `spoiler_text` parameter is a string to be shown as a warning before