aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mock <[email protected]>2018-02-11 15:30:58 -0800
committerGitHub <[email protected]>2018-02-11 15:30:58 -0800
commit365ebf3ad9083922b3245f5f5528217759b37aac (patch)
treec12578b9ede8252d67c332a33d9721b81f989afe /tests/test_reports.py
parentac0edd022fef41c2dcb8a8b8186cda13745dcd79 (diff)
downloadmastodon.py-365ebf3ad9083922b3245f5f5528217759b37aac.tar.gz
Fix 500 from status_post capitalized visibilities
The validator for the 'visibility' parameter lower()s it before verifying, but this means that "direct", "Direct", and "dIRECT" all pass validation. However, passing in 'Direct' (at least, to my instance) throws `mastodon.Mastodon.MastodonAPIError: ('Mastodon API returned error', 500, 'Internal Server Error', None)`. This corrects the parameter in-place.
Diffstat (limited to 'tests/test_reports.py')
0 files changed, 0 insertions, 0 deletions
Powered by cgit v1.2.3 (git 2.41.0)