From 345e8c35c01660fad0f916548b58351a41665e60 Mon Sep 17 00:00:00 2001 From: halcy Date: Sun, 23 Apr 2023 19:21:43 +0300 Subject: [PATCH] Fix streaming docs --- mastodon/streaming_endpoints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mastodon/streaming_endpoints.py b/mastodon/streaming_endpoints.py index 194bf75..4944fda 100644 --- a/mastodon/streaming_endpoints.py +++ b/mastodon/streaming_endpoints.py @@ -24,6 +24,9 @@ class Mastodon(Internals): def stream_public(self, listener, run_async=False, timeout=_DEFAULT_STREAM_TIMEOUT, reconnect_async=False, reconnect_async_wait_sec=_DEFAULT_STREAM_RECONNECT_WAIT_SEC, local=False, remote=False): """ Streams public events. + + Set `local` to True to only get local statuses. + Set `remote` to True to only get remote statuses. """ base = '/api/v1/streaming/public' if local: @@ -50,7 +53,7 @@ class Mastodon(Internals): Stream for all public statuses for the hashtag 'tag' seen by the connected instance. - Set local to True to only get local statuses. + Set `local` to True to only get local statuses. """ if tag.startswith("#"): raise MastodonIllegalArgumentError("Tag parameter should omit leading #")