Return HTTP 405 in reponse to POST request to outbox

ActivityPub C2S is not supported.
This commit is contained in:
silverpill 2022-10-31 19:10:55 +00:00
parent 8a3c3fdec2
commit 8c1d871d9e

View file

@ -163,6 +163,11 @@ async fn outbox(
Ok(response)
}
#[post("/outbox")]
async fn outbox_client_to_server() -> HttpResponse {
HttpResponse::MethodNotAllowed().finish()
}
#[get("/followers")]
async fn followers_collection(
config: web::Data<Config>,
@ -252,6 +257,7 @@ pub fn actor_scope() -> Scope {
.service(actor_view)
.service(inbox)
.service(outbox)
.service(outbox_client_to_server)
.service(followers_collection)
.service(following_collection)
.service(subscribers_collection)