diff options
author | rinpatch <[email protected]> | 2020-05-17 18:46:21 +0300 |
---|---|---|
committer | rinpatch <[email protected]> | 2020-05-17 18:47:59 +0300 |
commit | 346e6e84780365763cddb1f3fda757935b0c0b49 (patch) | |
tree | 9a728e7f79a667dc47ebaee74d1aca88acb04ff3 | |
parent | a793c25506245aefda3157328190f2b1f498b165 (diff) | |
download | mastodon.py-346e6e84780365763cddb1f3fda757935b0c0b49.tar.gz |
status_post: fix a typo in the error message when trying to use content_type without pleroma feature set
-rw-r--r-- | mastodon/Mastodon.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
1711 | 1711 | ||
1712 | if content_type != None: | 1712 | if content_type != None: |
1713 | if self.feature_set != "pleroma": | 1713 | if self.feature_set != "pleroma": |
1714 | raise MastodonIllegalArgumentError('quote_id is only available with feature set pleroma') | 1714 | raise MastodonIllegalArgumentError('content_type is only available with feature set pleroma') |
1715 | # It would be better to read this from nodeinfo and cache, but this is easier | 1715 | # It would be better to read this from nodeinfo and cache, but this is easier |
1716 | if not content_type in ["text/plain", "text/html", "text/markdown", "text/bbcode"]: | 1716 | if not content_type in ["text/plain", "text/html", "text/markdown", "text/bbcode"]: |
1717 | raise MastodonIllegalArgumentError('Invalid content type specified') | 1717 | raise MastodonIllegalArgumentError('Invalid content type specified') |