kopia lustrzana https://git.sr.ht/~tsileo/microblog.pub
Porównaj commity
2 Commity
51c596dd1d
...
94d14fbef3
Autor | SHA1 | Data |
---|---|---|
Thomas Sileo | 94d14fbef3 | |
Thomas Sileo | f34e0b376b |
|
@ -1256,7 +1256,11 @@ async def post_remote_interaction(
|
||||||
@app.get("/.well-known/webfinger")
|
@app.get("/.well-known/webfinger")
|
||||||
async def wellknown_webfinger(resource: str) -> JSONResponse:
|
async def wellknown_webfinger(resource: str) -> JSONResponse:
|
||||||
"""Exposes/servers WebFinger data."""
|
"""Exposes/servers WebFinger data."""
|
||||||
if resource not in [f"acct:{USERNAME}@{DOMAIN}", ID]:
|
if resource not in [
|
||||||
|
f"acct:{USERNAME}@{WEBFINGER_DOMAIN}",
|
||||||
|
ID,
|
||||||
|
f"acct:{USERNAME}@{DOMAIN}",
|
||||||
|
]:
|
||||||
logger.info(f"Got invalid req for {resource}")
|
logger.info(f"Got invalid req for {resource}")
|
||||||
raise HTTPException(status_code=404)
|
raise HTTPException(status_code=404)
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue