]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 14 May 2023 22:30:36 +0000 (00:30 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 14 May 2023 22:30:36 +0000 (00:30 +0200)
- also a blocks.db-journal is being written, so let's ignore all
- the software's name is misskey, no need to slur it

Signed-off-by: Roland Häder <roland@mxchange.org>
.gitignore
fetch_blocks.py

index e8eb51ecbe39936359a917d9db56bb01efa5b866..709bb92275b9a2b7bc7052f1702a724e4afbc546 100644 (file)
@@ -1,4 +1,4 @@
-blocks.db
+blocks.db*
 __pycache__/
 venv/
 config.json
index 3045eaa0907337a0bbe95f3e877b1b9eaeda5c77..aa09da52463ff2112a17918ec1c73a159096965f 100644 (file)
@@ -116,7 +116,7 @@ def get_friendica_blocks(domain: str) -> dict:
         "reject": blocks
     }
 
-def get_pisskey_blocks(domain: str) -> dict:
+def get_misskey_blocks(domain: str) -> dict:
     blocks = {
         "suspended": [],
         "blocked": []
@@ -422,7 +422,7 @@ for blocker, software in c.fetchall():
             if software == "friendica":
                 json = get_friendica_blocks(blocker)
             elif software == "misskey":
-                json = get_pisskey_blocks(blocker)
+                json = get_misskey_blocks(blocker)
             for block_level, blocks in json.items():
                 for instance in blocks:
                     blocked, reason = instance.values()