]> Untitled Git - lemmy.git/commitdiff
Revert apub endpoint change (again)
authorFelix Ableitner <me@nutomic.com>
Tue, 7 Apr 2020 15:34:44 +0000 (17:34 +0200)
committerFelix Ableitner <me@nutomic.com>
Tue, 7 Apr 2020 15:34:44 +0000 (17:34 +0200)
server/src/apub/mod.rs

index b9ed615bf38885f92569c8c8d0470d053b89b28a..1669ee8957a3ae0445c7cbb3d7562d8bf6939736 100644 (file)
@@ -36,10 +36,10 @@ pub enum EndpointType {
 //       and have it fetch the object.
 pub fn make_apub_endpoint(endpoint_type: EndpointType, name: &str) -> Url {
   let point = match endpoint_type {
-    EndpointType::Community => "community",
-    EndpointType::User => "user",
-    EndpointType::Post => "post",
-    EndpointType::Comment => "comment",
+    EndpointType::Community => "c",
+    EndpointType::User => "u",
+    EndpointType::Post => "p",
+    EndpointType::Comment => todo!(),
   };
 
   Url::parse(&format!(