From 05230958548d4e7538072ca7fab22af4450c8537 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 27 Aug 2023 08:02:01 +0200 Subject: [PATCH] Ops: - need to be negated - moved LICENSE file to docs --- LICENSE => docs/LICENSE | 0 fba/networks/mastodon.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename LICENSE => docs/LICENSE (100%) diff --git a/LICENSE b/docs/LICENSE similarity index 100% rename from LICENSE rename to docs/LICENSE diff --git a/fba/networks/mastodon.py b/fba/networks/mastodon.py index 4eebffe..77e77c8 100644 --- a/fba/networks/mastodon.py +++ b/fba/networks/mastodon.py @@ -203,7 +203,7 @@ def fetch_blocks(domain: str, nodeinfo_url: str) -> list: elif block["severity"] in ["accept", "accepted"]: logger.debug("block[domain]='%s' has unwanted severity level '%s' - SKIPPED!", block["domain"], block["severity"]) continue - elif "digest" in block and validators.hashes.sha256(block["digest"]): + elif "digest" in block and not validators.hashes.sha256(block["digest"]): logger.warning("block[domain]='%s' has invalid block[digest]='%s' - SKIPPED!", block["domain"], block["digest"]) continue -- 2.39.5