mirror of
https://github.com/nova-r/fediplug.git
synced 2025-03-10 07:39:00 +01:00
fixes naming issue after Mastodon.py api change
This commit is contained in:
parent
77dde766d3
commit
76f8bbe16b
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def login(api_base_url, email, password):
|
||||||
def stream(api_base_url):
|
def stream(api_base_url):
|
||||||
client = Mastodon(client_id='clientcred.secret', access_token='usercred.secret', api_base_url=api_base_url)
|
client = Mastodon(client_id='clientcred.secret', access_token='usercred.secret', api_base_url=api_base_url)
|
||||||
listener = StreamListener()
|
listener = StreamListener()
|
||||||
client.user_stream(listener)
|
client.stream_user(listener)
|
||||||
|
|
||||||
def extract_tags(toot):
|
def extract_tags(toot):
|
||||||
return [tag['name'] for tag in toot['tags']]
|
return [tag['name'] for tag in toot['tags']]
|
||||||
|
|
Loading…
Reference in a new issue