diff options
author | Lorenz Diener <[email protected]> | 2020-05-18 17:52:00 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-18 17:52:00 +0200 |
commit | 28b6cc6c06959763f8675a75e67e8f27665bf8a0 (patch) | |
tree | 9a728e7f79a667dc47ebaee74d1aca88acb04ff3 /mastodon | |
parent | a793c25506245aefda3157328190f2b1f498b165 (diff) | |
parent | 346e6e84780365763cddb1f3fda757935b0c0b49 (diff) | |
download | mastodon.py-28b6cc6c06959763f8675a75e67e8f27665bf8a0.tar.gz |
Merge pull request #215 from rinpatch/fix/content-type-error-typo
status_post: fix a typo in the error message when trying to use content_type without pleroma feature set
Diffstat (limited to 'mastodon')
-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') |