mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2025-06-05 21:59:23 +02:00
More thorough URL checks
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user