1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Bug fixes

This commit is contained in:
Thomas Sileo
2022-07-06 21:13:33 +02:00
parent 8fbb48f671
commit 786072ec8a
2 changed files with 8 additions and 3 deletions

View File

@ -167,8 +167,8 @@ async def enforce_httpsig(
# Special case for Mastoodon instance that keep resending Delete
# activities for actor we don't know about if we raise a 401
if httpsig_info.is_ap_actor_gone:
logger.info("Let's make Mastodon happy, returning a 204")
raise fastapi.HTTPException(status_code=204)
logger.info("Let's make Mastodon happy, returning a 202")
raise fastapi.HTTPException(status_code=202)
raise fastapi.HTTPException(status_code=401, detail="Invalid HTTP sig")