]> git.mxchange.org Git - fba.git/commitdiff
More friendica domain unshielding
authorMint <>
Thu, 15 Sep 2022 07:17:21 +0000 (10:17 +0300)
committerMint <>
Thu, 15 Sep 2022 07:17:21 +0000 (10:17 +0300)
fetch_blocks.py

index 7f1fedbf90359bb08ca47035319fca71bb5c7fda..b3141b1e800e4789e3c5a45e045645a6661b22dc 100644 (file)
@@ -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,)
                     )