mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-15 00:43:59 +00:00
Revert apub endpoint url changes
This commit is contained in:
parent
85ea1046f0
commit
4fadc4d072
1 changed files with 7 additions and 4 deletions
|
@ -29,12 +29,15 @@ pub enum EndpointType {
|
||||||
Comment,
|
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 {
|
pub fn make_apub_endpoint(endpoint_type: EndpointType, name: &str) -> Url {
|
||||||
let point = match endpoint_type {
|
let point = match endpoint_type {
|
||||||
EndpointType::Community => "community",
|
EndpointType::Community => "c",
|
||||||
EndpointType::User => "user",
|
EndpointType::User => "u",
|
||||||
EndpointType::Post => "post",
|
EndpointType::Post => "p",
|
||||||
EndpointType::Comment => "comment",
|
EndpointType::Comment => todo!(),
|
||||||
};
|
};
|
||||||
|
|
||||||
Url::parse(&format!(
|
Url::parse(&format!(
|
||||||
|
|
Loading…
Reference in a new issue