Revert "protect against invalid posts"

This reverts commit 4e5c2b1f9a.
This commit is contained in:
codl 2017-09-21 07:19:35 +02:00
parent e9653f34be
commit 1123d44b30
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 0 additions and 2 deletions

View File

@ -128,8 +128,6 @@ def fetch_acc(acc, cursor=None):
kwargs['max_id'] = +inf kwargs['max_id'] = +inf
for status in statuses: for status in statuses:
if 'id' not in status.keys():
continue
post = post_from_api_object(status, acc.mastodon_instance) post = post_from_api_object(status, acc.mastodon_instance)
db.session.merge(post) db.session.merge(post)
kwargs['max_id'] = min(kwargs['max_id'], post.mastodon_id) kwargs['max_id'] = min(kwargs['max_id'], post.mastodon_id)