aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoĆ«lle Anthony <[email protected]>2018-02-01 18:57:59 -0500
committerGitHub <[email protected]>2018-02-01 18:57:59 -0500
commit83daab6e31613f8a8c8cb8eac78abde074ab7dc1 (patch)
treeacfdbe42e505ad869d49a60a85ef80a88c12090f /mastodon/Mastodon.py
parent0cd284bc2fbf3679168853275e2baa05e9fa2b97 (diff)
downloadmastodon.py-83daab6e31613f8a8c8cb8eac78abde074ab7dc1.tar.gz
Update Mastodon.py documentation for status_post()
Updated the docstring for the status_post method to more clearly indicate that the *media_id* argument must be a list even when passing in media dicts returned by *media_post*. (This inclarity cost me quite a bit of debugging this evening.)
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index eeb0b48..ffaf32e 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -893,9 +893,12 @@ class Mastodon:
893 sensitive=False, visibility='', spoiler_text=None): 893 sensitive=False, visibility='', spoiler_text=None):
894 """ 894 """
895 Post a status. Can optionally be in reply to another status and contain 895 Post a status. Can optionally be in reply to another status and contain
896 up to four pieces of media (Uploaded via `media_post()`_). media_ids can 896 media.
897 also be the `media dicts`_ returned by `media_post()`_ - they are unpacked 897
898 automatically. 898 `media_ids` must be a list (even if you're only attaching one item). It
899 can contain up to four pieces of media (uploaded via `media_post()`_).
900 `media_ids` can also be the `media dicts`_ returned by `media_post()`_ -
901 they are unpacked automatically.
899 902
900 The `sensitive` boolean decides whether or not media attached to the post 903 The `sensitive` boolean decides whether or not media attached to the post
901 should be marked as sensitive, which hides it by default on the Mastodon 904 should be marked as sensitive, which hides it by default on the Mastodon
Powered by cgit v1.2.3 (git 2.41.0)