]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Thu, 22 Jun 2023 19:30:20 +0000 (21:30 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 22 Jun 2023 19:30:20 +0000 (21:30 +0200)
- it is 'blocked' not 'blocker' (current domain in fetch_blocks() function)

fba/networks/pleroma.py

index 8bc28831d7df3c8ee3f32a36f2253b4f8cc4e631..c2481ce82a53d3de892cb9ed490408e7728f9c52 100644 (file)
@@ -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