More thorough URL checks
This commit is contained in:
parent
0d3b41272f
commit
c160b75851
6 changed files with 25 additions and 6 deletions
|
@ -22,6 +22,7 @@ from app.database import AsyncSession
|
|||
from app.database import SessionLocal
|
||||
from app.key import Key
|
||||
from app.utils.datetime import now
|
||||
from app.utils.url import check_url
|
||||
|
||||
_MAX_RETRIES = 16
|
||||
|
||||
|
@ -218,6 +219,7 @@ def process_next_outgoing_activity(db: Session) -> bool:
|
|||
"target": next_activity.webmention_target,
|
||||
}
|
||||
logger.info(f"{webmention_payload=}")
|
||||
check_url(next_activity.recipient)
|
||||
resp = httpx.post(
|
||||
next_activity.recipient,
|
||||
data=webmention_payload,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue