From 346e6e84780365763cddb1f3fda757935b0c0b49 Mon Sep 17 00:00:00 2001 From: rinpatch Date: Sun, 17 May 2020 18:46:21 +0300 Subject: status_post: fix a typo in the error message when trying to use content_type without pleroma feature set --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index a6ed111..98ac72a 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -1711,7 +1711,7 @@ class Mastodon: if content_type != None: if self.feature_set != "pleroma": - raise MastodonIllegalArgumentError('quote_id is only available with feature set pleroma') + raise MastodonIllegalArgumentError('content_type is only available with feature set pleroma') # It would be better to read this from nodeinfo and cache, but this is easier if not content_type in ["text/plain", "text/html", "text/markdown", "text/bbcode"]: raise MastodonIllegalArgumentError('Invalid content type specified') -- cgit v1.2.3