diff --git a/mirror_bot.py b/mirror_bot.py index 9b2447a..cc5e609 100755 --- a/mirror_bot.py +++ b/mirror_bot.py @@ -76,8 +76,11 @@ class PostMirror: print(next(spinner), end='', flush=True) - for item in page['orderedItems']: - post = item['object'] + for activity in page['orderedItems']: + if activity['type'] != 'Create': + # it's not a post, but a boost or like or something + continue + post = activity['object'] published_at = pendulum.parse(post['published']) if published_at < last_mirrored_at: done = True