Merge pull request #53 from ticketfrei/master

mastodon seen toots work differently now; function deprecated
stable2
b3yond 2018-10-13 19:37:58 +02:00 committed by GitHub
commit 6aff9c179f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -244,11 +244,6 @@ def login_mastodon(user):
try:
access_token = m.log_in(masto_email, masto_pass)
user.save_masto_token(access_token, instance_url)
# Trying to set the seen_toot to 0, thereby initializing it.
# It should work now, but has default values. Not sure if I need them.
user.init_seen_toot(instance_url)
return city_page(user.get_city(), info='Thanks for supporting decentralized social networks!')
except Exception:
logger.error('Login to Mastodon failed.', exc_info=True)