From cd83fcb03e8a70659df2b404c7452b0fa8380377 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 7 Apr 2020 13:21:30 +0200 Subject: [PATCH] Revert apub endpoint url changes --- server/src/apub/mod.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs index f4afdb1f0..f2e5a56f3 100644 --- a/server/src/apub/mod.rs +++ b/server/src/apub/mod.rs @@ -29,12 +29,15 @@ pub enum EndpointType { Comment, } +// TODO: we will probably need to change apub endpoint urls so that html and activity+json content +// types are handled at the same endpoint, so that you can copy the url into mastodon search +// 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!(