only mirror original posts
This commit is contained in:
parent
bdb3b68dfe
commit
0a5a10c18e
|
@ -76,8 +76,11 @@ class PostMirror:
|
||||||
|
|
||||||
print(next(spinner), end='', flush=True)
|
print(next(spinner), end='', flush=True)
|
||||||
|
|
||||||
for item in page['orderedItems']:
|
for activity in page['orderedItems']:
|
||||||
post = item['object']
|
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'])
|
published_at = pendulum.parse(post['published'])
|
||||||
if published_at < last_mirrored_at:
|
if published_at < last_mirrored_at:
|
||||||
done = True
|
done = True
|
||||||
|
|
Loading…
Reference in New Issue