small fix

multi-deployment
git-sid 2018-09-13 17:24:19 +02:00
parent 3e83ba95da
commit c576888da5
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()):