fix:deadlock und doppelte Mails
This commit is contained in:
1 parent
b1531e41e1
commit
8b6f74f364
13 files changed
+69
-27
No files matched your search
@@ -42,7 +42,8 @@ def path_of(url: str) -> str:
|
||||
|
||||
|
||||
def links_in(text: str, part: str) -> list[str]:
|
||||
return [path_of(u) for u in re.findall(r"https?://\S+", text) if part in u]
|
||||
found = [path_of(u) for u in re.findall(r"https?://[^\s\"'<>]+", text) if part in u]
|
||||
return list(dict.fromkeys(found)) # dieselbe Adresse als Link und als Text: einmal
|
||||
|
||||
|
||||
def guest_form(app: Any, **settings: Any) -> tuple[str, int, list[str]]:
|
||||
|
||||
Reference in new issue
Block a user