make sure to convert mastodon post IDs to integers

mastodon v2.0.0 changed IDs to be snowflake-like and returns them as
strings in the API
This commit is contained in:
codl 2017-10-18 21:04:52 +02:00
parent a057669a21
commit 75e5f52871
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ def fetch_acc(acc, cursor=None):
post = post_from_api_object(status, acc.mastodon_instance)
db.session.merge(post)
if 'max_id' not in kwargs:
kwargs['max_id'] = status['id']
kwargs['max_id'] = int(status['id'])
kwargs['max_id'] = min(int(kwargs['max_id']), int(status['id']))
else: