diff options
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 6 |
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() |