aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.rst1
-rw-r--r--mastodon/Mastodon.py5
2 files changed, 3 insertions, 3 deletions
diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 87de0a2..c266cbc 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -23,6 +23,7 @@ v1.6.0
23 * Added a method to revoke oauth tokens (thanks fluffy-critter) 23 * Added a method to revoke oauth tokens (thanks fluffy-critter)
24* Fixes 24* Fixes
25 * Various small and big fixes, improving reliablity and test coverage 25 * Various small and big fixes, improving reliablity and test coverage
26 * Changed health APIs to work with newer Mastodon versions
26 * Changed URLs from "tootsuite" to "mastodon" in several places (thanks andypiper) 27 * Changed URLs from "tootsuite" to "mastodon" in several places (thanks andypiper)
27 * Fixed some fields not converting to datetimes (thanks SouthFox-D) 28 * Fixed some fields not converting to datetimes (thanks SouthFox-D)
28 * Improved oauth web flow support 29 * Improved oauth web flow support
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 11cd2f3..7de4be9 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -3341,9 +3341,8 @@ class Mastodon:
3341 """ 3341 """
3342 Returns without True if streaming API is okay, False or raises an error otherwise. 3342 Returns without True if streaming API is okay, False or raises an error otherwise.
3343 """ 3343 """
3344 api_okay = self.__api_request( 3344 api_okay = self.__api_request('GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False)
3345 'GET', '/api/v1/streaming/health', base_url_override=self.__get_streaming_base(), parse=False) 3345 if api_okay in [b'OK', b'success']:
3346 if api_okay == b'OK':
3347 return True 3346 return True
3348 return False 3347 return False
3349 3348
Powered by cgit v1.2.3 (git 2.41.0)