From 785499ab82dc73d804fe53fdf7c30819261e6c24 Mon Sep 17 00:00:00 2001 From: nanos Date: Fri, 31 Mar 2023 10:23:47 +0100 Subject: [PATCH] do make sure we also backfill users from reblogs --- find_posts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/find_posts.py b/find_posts.py index bfe6a19..d019b3f 100644 --- a/find_posts.py +++ b/find_posts.py @@ -80,6 +80,10 @@ def pull_context( mentioned_users = mentioned_users + [toot['account']] if(len(toot['mentions'])): mentioned_users = mentioned_users + toot['mentions'] + if(toot['reblog'] != None): + mentioned_users = mentioned_users + [toot['reblog']['account']] + if(len(toot['reblog']['mentions'])): + mentioned_users = mentioned_users + toot['reblog']['mentions'] add_user_posts(server, access_token, filter_known_users(mentioned_users, all_known_users), recently_checked_users, all_known_users, seen_urls)