Change the signature of ap_url to be backward-compatible
This commit is contained in:
parent
f58bc1d8f1
commit
9a825e7066
@ -92,7 +92,7 @@ lazy_static! {
|
||||
pub static ref USE_HTTPS: bool = env::var("USE_HTTPS").map(|val| val == "1").unwrap_or(true);
|
||||
}
|
||||
|
||||
pub fn ap_url(url: &str) -> String {
|
||||
pub fn ap_url(url: String) -> String {
|
||||
let scheme = if *USE_HTTPS {
|
||||
"https"
|
||||
} else {
|
||||
|
@ -3,8 +3,7 @@ use rocket::response::Content;
|
||||
use serde_json;
|
||||
use webfinger::*;
|
||||
|
||||
use plume_common::activity_pub::ap_url;
|
||||
use plume_models::{BASE_URL, db_conn::DbConn, blogs::Blog, users::User};
|
||||
use plume_models::{BASE_URL, ap_url, db_conn::DbConn, blogs::Blog, users::User};
|
||||
|
||||
#[get("/.well-known/nodeinfo")]
|
||||
fn nodeinfo() -> Content<String> {
|
||||
|
Loading…
Reference in New Issue
Block a user