From: Roland Häder Date: Thu, 22 Jun 2023 19:30:20 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec4daef3526da5d5c7dc7d3fa851ef3d62636dfb;p=fba.git Continued: - it is 'blocked' not 'blocker' (current domain in fetch_blocks() function) --- 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