summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix <me@nutomic.com>2020-04-07 13:21:30 +0200
committerFelix <me@nutomic.com>2020-04-07 13:21:30 +0200
commit4fadc4d072aa50c1ebd65672214b601240f9e8c7 (patch)
treecf613eb98cfc84366b1cab2595915f843c891bf5
parent85ea1046f060694bec545c7897c5da9ecda412ef (diff)
Revert apub endpoint url changes
-rw-r--r--server/src/apub/mod.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/server/src/apub/mod.rs b/server/src/apub/mod.rs
index f4afdb1f..f2e5a56f 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!(