From: Felix Ableitner Date: Mon, 4 Jan 2021 18:53:15 +0000 (+0100) Subject: Return http status code 410 with apub tombstone (ref #1256) X-Git-Url: http://these/git/%24%7BgetStaticDir%28%29%7D/styles/%7B%60https:/%7Bpost.embed_video_url%7D?a=commitdiff_plain;h=d300968ee8a71f189208d78c97b0d88f4c1b3858;p=lemmy.git Return http status code 410 with apub tombstone (ref #1256) --- diff --git a/lemmy_apub/src/http/mod.rs b/lemmy_apub/src/http/mod.rs index 4f31f6a5..44835bf8 100644 --- a/lemmy_apub/src/http/mod.rs +++ b/lemmy_apub/src/http/mod.rs @@ -5,6 +5,7 @@ use lemmy_structs::blocking; use lemmy_utils::{settings::Settings, LemmyError}; use lemmy_websocket::LemmyContext; use serde::{Deserialize, Serialize}; +use http::StatusCode; pub mod comment; pub mod community; @@ -28,6 +29,7 @@ where { HttpResponse::Gone() .content_type(APUB_JSON_CONTENT_TYPE) + .status(StatusCode::GONE) .json(data) }