From ec4daef3526da5d5c7dc7d3fa851ef3d62636dfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 22 Jun 2023 21:30:20 +0200 Subject: [PATCH] Continued: - it is 'blocked' not 'blocker' (current domain in fetch_blocks() function) --- fba/networks/pleroma.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fba/networks/pleroma.py b/fba/networks/pleroma.py index 8bc2883..c2481ce 100644 --- a/fba/networks/pleroma.py +++ b/fba/networks/pleroma.py @@ -298,7 +298,7 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: logger.debug("Checking %d blockdict records ...", len(blockdict)) for block in blockdict: - logger.debug("block[blocker]='%s',blocker='%s'", block['blocker'], blocker) + logger.debug("block[blocked]='%s',blocked='%s'", block['blocked'], blocked) if block['blocked'] == blocked: logger.debug("Updating reason='%s' for blocker='%s'", reason, block['blocked']) block['reason'] = reason @@ -361,7 +361,7 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: logger.debug("Checking %d blockdict records ...", len(blockdict)) for block in blockdict: - logger.debug("block[blocker]='%s',blocker='%s'", block['blocker'], blocker) + logger.debug("block[blocked]='%s',blocked='%s'", block['blocked'], blocked) if block['blocked'] == blocked: logger.debug("Updating reason='%s' for blocker='%s'", reason, block['blocked']) block['reason'] = reason -- 2.39.5