More thorough URL checks
This commit is contained in:
parent
0d3b41272f
commit
c160b75851
6 changed files with 25 additions and 6 deletions
|
@ -8,6 +8,7 @@ from loguru import logger
|
|||
|
||||
from app import config
|
||||
from app.utils.datetime import now
|
||||
from app.utils.url import check_url
|
||||
from app.utils.url import is_url_valid
|
||||
from app.utils.url import make_abs
|
||||
|
||||
|
@ -46,6 +47,8 @@ async def discover_webmention_endpoint(url: str) -> str | None:
|
|||
Passes all the tests at https://webmention.rocks!
|
||||
|
||||
"""
|
||||
check_url(url)
|
||||
|
||||
wurl = await _discover_webmention_endoint(url)
|
||||
if wurl is None:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue