Check hashtags in streaming API
This commit is contained in:
pare
c5970d10f9
commit
a7e2caa369
S'han modificat 1 arxius amb 2 adicions i 0 eliminacions
|
@ -1044,6 +1044,8 @@ class Mastodon:
|
||||||
a subclass of StreamListener which will receive callbacks for incoming
|
a subclass of StreamListener which will receive callbacks for incoming
|
||||||
events.
|
events.
|
||||||
"""
|
"""
|
||||||
|
if tag.startswith("#"):
|
||||||
|
raise MastodonIllegalArgumentError("Tag parameter should omit leading #")
|
||||||
return self.__stream("/api/v1/streaming/hashtag?tag={}".format(tag), listener)
|
return self.__stream("/api/v1/streaming/hashtag?tag={}".format(tag), listener)
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
Loading…
Referencia en una nova incidència