mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-03 06:36:40 +00:00
fmt
This commit is contained in:
parent
beba6cd17b
commit
20d454794d
1 changed files with 6 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
use activitypub_federation::{
|
||||
config::Data,
|
||||
fetch::webfinger::{extract_webfinger_name, Webfinger, WebfingerLink},
|
||||
fetch::webfinger::{extract_webfinger_name, Webfinger, WebfingerLink, WEBFINGER_CONTENT_TYPE},
|
||||
};
|
||||
use actix_web::{web, web::Query, HttpResponse};
|
||||
use lemmy_api_common::context::LemmyContext;
|
||||
|
@ -12,7 +12,6 @@ use lemmy_db_schema::{
|
|||
use lemmy_utils::{cache_header::cache_3days, error::LemmyError};
|
||||
use serde::Deserialize;
|
||||
use std::collections::HashMap;
|
||||
use activitypub_federation::fetch::webfinger::WEBFINGER_CONTENT_TYPE;
|
||||
use url::Url;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
|
@ -71,7 +70,11 @@ async fn get_webfinger_response(
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
Ok(HttpResponse::Ok().content_type(&WEBFINGER_CONTENT_TYPE).json(json))
|
||||
Ok(
|
||||
HttpResponse::Ok()
|
||||
.content_type(&WEBFINGER_CONTENT_TYPE)
|
||||
.json(json),
|
||||
)
|
||||
}
|
||||
|
||||
fn webfinger_link_for_actor(
|
||||
|
|
Loading…
Reference in a new issue