From 503d58d226c52901532067d3dcb5a7814699f7fb Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Thu, 23 Feb 2023 20:41:46 -0800 Subject: support content_type when updating existing status --- mastodon/statuses.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mastodon') 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): return self.status_post(status) @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS) - def status_update(self, id, status = None, spoiler_text = None, sensitive = None, media_ids = None, poll = None): + def status_update(self, id, status = None, spoiler_text = None, sensitive = None, media_ids = None, poll = None, content_type = None): """ Edit a status. The meanings of the fields are largely the same as in :ref:`status_post() `, though not every field can be edited. @@ -285,7 +285,8 @@ class Mastodon(Internals): sensitive = sensitive, spoiler_text = spoiler_text, poll = poll, - edit = id + edit = id, + content_type = content_type ) @api_version("3.5.0", "3.5.0", _DICT_VERSION_STATUS_EDIT) -- cgit v1.2.3