mirror of
https://git.kiwifarms.net/mint/fedi-block-api.git
synced 2024-10-22 23:19:07 +00:00
More friendica domain unshielding
This commit is contained in:
parent
fb491af8ec
commit
29a7f5f814
1 changed files with 9 additions and 0 deletions
|
@ -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,)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue