blocking = list()
- if federation.is_excluded_blocklist(blocker):
+ if not federation.is_excluded_blocklist(blocker):
logger.debug("blocker='%s',software='%s'", blocker, software)
if software == "pleroma":
logger.info("blocker='%s',software='%s'", blocker, software)
processing.block(block["blocker"], domain, None, "reject_reports")
logger.debug("block[blocker]='%s'", block["blocker"])
- if blocklists.is_excluded(block["blocker"]):
+ if not blocklists.is_excluded(block["blocker"]):
logger.debug("Invoking instances.set_total_blocks(%s, domains()=%d) ...", block["blocker"], len(domains))
instances.set_total_blocks(block["blocker"], domains)
logger.debug("row[domain]='%s'", row["domain"])
# chaos.social requires special care ...
- if blocklists.is_excluded(row["domain"]):
+ if not blocklists.is_excluded(row["domain"]):
logger.debug("Invoking instances.set_total_blocks(%s, %d) ...", row["domain"], len(blocking))
instances.set_last_blocked(row["domain"])
instances.set_total_blocks(row["domain"], blocking)
logger.debug("row[blocker]='%s',domain='%s'", row["blocker"], domain)
if row["blocker"] == domain:
excluded = True
+ logger.debug("domain='%s' is excluded from regular fetch_blocks command - BREAK!", domain)
break
logger.debug("excluded='%s' - EXIT!")