aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErin Congden <[email protected]>2017-04-02 18:46:43 -0700
committerErin Congden <[email protected]>2017-04-02 21:14:07 -0700
commitf734a45fb667baf40d2cae3696934f91f1d5d8d0 (patch)
tree3e09a52f50c0cc5df28504f0069ca7262dbb9c7f /mastodon/Mastodon.py
parent857968f34e19191e0ae5771b3a62e450a180ad0e (diff)
downloadmastodon.py-f734a45fb667baf40d2cae3696934f91f1d5d8d0.tar.gz
Added spoiler text support
Diffstat (limited to 'mastodon/Mastodon.py')
-rw-r--r--mastodon/Mastodon.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index b9ab05b..1d0e69f 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -318,7 +318,7 @@ class Mastodon:
318 ### 318 ###
319 # Writing data: Statuses 319 # Writing data: Statuses
320 ### 320 ###
321 def status_post(self, status, in_reply_to_id = None, media_ids = None, sensitive = False, visibility = ''): 321 def status_post(self, status, in_reply_to_id = None, media_ids = None, sensitive = False, visibility = '', spoiler_text = None):
322 """ 322 """
323 Post a status. Can optionally be in reply to another status and contain 323 Post a status. Can optionally be in reply to another status and contain
324 up to four pieces of media (Uploaded via media_post()). media_ids can 324 up to four pieces of media (Uploaded via media_post()). media_ids can
@@ -338,6 +338,10 @@ class Mastodon:
338 If not passed in, visibility defaults to match the current account's 338 If not passed in, visibility defaults to match the current account's
339 privacy setting (private if the account is locked, public otherwise). 339 privacy setting (private if the account is locked, public otherwise).
340 340
341 The spoiler_text parameter is a string to be shown as a warning before
342 the text of the status. If no text is passed in, no warning will be
343 displayed.
344
341 Returns a toot dict with the new status. 345 Returns a toot dict with the new status.
342 """ 346 """
343 params_initial = locals() 347 params_initial = locals()
Powered by cgit v1.2.3 (git 2.41.0)