aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-23 20:41:46 -0800
committerclarkzjw <[email protected]>2023-02-23 20:41:46 -0800
commit503d58d226c52901532067d3dcb5a7814699f7fb (patch)
tree8e1b931813f119a095523387e1b89072b86001b5
parent9225072cc8bb0d6d7e7fb3464b5018cdb8cd3780 (diff)
downloadmastodon.py-503d58d226c52901532067d3dcb5a7814699f7fb.tar.gz
support content_type when updating existing statusfix/status_update_content_type
-rw-r--r--mastodon/statuses.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mastodon/statuses.py b/mastodon/statuses.py
index eb372d8..4c9e962 100644
--- a/mastodon/statuses.py
+++ b/mastodon/statuses.py
@@ -272,7 +272,7 @@ class Mastodon(Internals):
272 return self.status_post(status) 272 return self.status_post(status)
273 273
274 @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS) 274 @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS)
275 def status_update(self, id, status = None, spoiler_text = None, sensitive = None, media_ids = None, poll = None): 275 def status_update(self, id, status = None, spoiler_text = None, sensitive = None, media_ids = None, poll = None, content_type = None):
276 """ 276 """
277 Edit a status. The meanings of the fields are largely the same as in :ref:`status_post() <status_post()>`, 277 Edit a status. The meanings of the fields are largely the same as in :ref:`status_post() <status_post()>`,
278 though not every field can be edited. 278 though not every field can be edited.
@@ -285,7 +285,8 @@ class Mastodon(Internals):
285 sensitive = sensitive, 285 sensitive = sensitive,
286 spoiler_text = spoiler_text, 286 spoiler_text = spoiler_text,
287 poll = poll, 287 poll = poll,
288 edit = id 288 edit = id,
289 content_type = content_type
289 ) 290 )
290 291
291 @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS_EDIT) 292 @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS_EDIT)
Powered by cgit v1.2.3 (git 2.41.0)