mirror of
https://git.kiwifarms.net/mint/fedi-block-api.git
synced 2024-10-22 21:39:05 +00:00
+1 filter for entries
This commit is contained in:
parent
6fa74de55c
commit
dc5301b89f
1 changed files with 2 additions and 0 deletions
|
@ -191,6 +191,8 @@ def tidyup(domain: str) -> str:
|
|||
domain = re.sub("^https?\:(\/*)", "", domain)
|
||||
# and trailing slash
|
||||
domain = re.sub("\/$", "", domain)
|
||||
# and the @
|
||||
domain = re.sub("^\@", "", domain)
|
||||
# the biggest retards of them all try to block individual users
|
||||
domain = re.sub("(.+)\@", "", domain)
|
||||
return domain
|
||||
|
|
Loading…
Reference in a new issue