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
pull/219/head
Lorenz Diener 2020-05-18 17:52:00 +02:00 zatwierdzone przez GitHub
commit 28b6cc6c06
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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')