More friendica domain unshielding

This commit is contained in:
Mint 2022-09-15 10:17:21 +03:00
parent fb491af8ec
commit 29a7f5f814

View file

@ -324,6 +324,15 @@ for blocker, software in c.fetchall():
if searchres != None: if searchres != None:
blocked = searchres[0] 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( c.execute(
"select domain from instances where domain = ?", (blocked,) "select domain from instances where domain = ?", (blocked,)
) )