status_post: fix a typo in the error message when trying to use content_type without pleroma feature set
This commit is contained in:
pare
a793c25506
commit
346e6e8478
S'han modificat 1 arxius amb 1 adicions i 1 eliminacions
|
@ -1711,7 +1711,7 @@ class Mastodon:
|
||||||
|
|
||||||
if content_type != None:
|
if content_type != None:
|
||||||
if self.feature_set != "pleroma":
|
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
|
# 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"]:
|
if not content_type in ["text/plain", "text/html", "text/markdown", "text/bbcode"]:
|
||||||
raise MastodonIllegalArgumentError('Invalid content type specified')
|
raise MastodonIllegalArgumentError('Invalid content type specified')
|
||||||
|
|
Loading…
Referencia en una nova incidència