Domain unshielding for Friendica
This commit is contained in:
parent
80a1e77695
commit
27ccf4c5da
@ -312,6 +312,16 @@ for blocker, software in c.fetchall():
|
|||||||
for instance in blocks:
|
for instance in blocks:
|
||||||
blocked, reason = instance.values()
|
blocked, reason = instance.values()
|
||||||
blocked = tidyup(blocked)
|
blocked = tidyup(blocked)
|
||||||
|
|
||||||
|
if blocked.count("*") > 0:
|
||||||
|
# Some friendica servers also obscure domains without hash
|
||||||
|
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,)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user