small fix

master
git-sid 2018-09-13 17:24:19 +02:00
parent 2897287b55
commit 09d5d23c07
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class MastodonBot(Bot):
logger.error("Unknown Mastodon API Error.", exc_info=True)
return mentions
for status in notifications:
if user.get_seen_toot() == None:
if user.get_seen_toot() is None:
user.init_seen_toot(m.instance()['uri'])
if (status['type'] == 'mention' and
status['status']['id'] > user.get_seen_toot()):