mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-23 12:51:18 +00:00
Revert apub endpoint change (again)
This commit is contained in:
parent
095ccae616
commit
1b0da74b57
1 changed files with 4 additions and 4 deletions
|
@ -36,10 +36,10 @@ pub enum EndpointType {
|
||||||
// and have it fetch the object.
|
// 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