]> Untitled Git - lemmy.git/commitdiff
Return http status code 410 with apub tombstone (ref #1256)
authorFelix Ableitner <me@nutomic.com>
Mon, 4 Jan 2021 18:53:15 +0000 (19:53 +0100)
committerFelix Ableitner <me@nutomic.com>
Mon, 4 Jan 2021 18:53:15 +0000 (19:53 +0100)
lemmy_apub/src/http/mod.rs

index 4f31f6a5e768aee9e8c92d5db65e7593e984f321..44835bf899295eb82feb3b74a8a108413319ed18 100644 (file)
@@ -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)
 }