From 29a7f5f814fcb8ae234ddb2b2c5383710d47a511 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Thu, 15 Sep 2022 10:17:21 +0300 Subject: [PATCH] More friendica domain unshielding --- fetch_blocks.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/fetch_blocks.py b/fetch_blocks.py index 7f1fedb..b3141b1 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -324,6 +324,15 @@ for blocker, software in c.fetchall(): if searchres != None: blocked = searchres[0] + if blocked.count("?") > 0: + # Some obscure them with question marks, not sure if that's dependent on version or not + c.execute( + "select domain from instances where domain like ? order by rowid limit 1", (blocked.replace("?", "_"),) + ) + searchres = c.fetchone() + if searchres != None: + blocked = searchres[0] + c.execute( "select domain from instances where domain = ?", (blocked,) ) -- 2.39.5