From dcde5038ff8a0179a22c4aa0723fdabb433ef748 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 Jul 2022 11:18:11 +0100 Subject: [PATCH] Don't follow yourself --- importFollowing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/importFollowing.py b/importFollowing.py index 9eecb821d..c81bc524d 100644 --- a/importFollowing.py +++ b/importFollowing.py @@ -68,6 +68,10 @@ def _update_import_following(base_dir: str, following_domain, following_port = get_domain_from_actor(line) if not following_domain: continue + if following_nickname == nickname and \ + following_domain == domain: + # don't follow yourself + continue following_handle = following_nickname + '@' + following_domain if is_following_actor(base_dir, nickname, domain, following_handle):