Fixed a regression in WebFinger by tag
ci/woodpecker/push/ociImagePush Pipeline is running
Details
ci/woodpecker/push/ociImagePush Pipeline is running
Details
This commit is contained in:
parent
0dff0c0785
commit
014b394f66
|
@ -47,12 +47,17 @@ pub async fn handle_webfinger(
|
|||
StatusCode::UNPROCESSABLE_ENTITY
|
||||
})?;
|
||||
|
||||
ck.get_user_by_tag(tag.name.as_ref(), tag.host.as_ref())
|
||||
.await
|
||||
.map_err(|e| {
|
||||
error!("Data error: {e}");
|
||||
StatusCode::INTERNAL_SERVER_ERROR
|
||||
})?
|
||||
ck.get_user_by_tag(
|
||||
tag.name.as_ref(),
|
||||
tag.host
|
||||
.as_ref()
|
||||
.filter(|host| host.to_string() != config.networking.host),
|
||||
)
|
||||
.await
|
||||
.map_err(|e| {
|
||||
error!("Data error: {e}");
|
||||
StatusCode::INTERNAL_SERVER_ERROR
|
||||
})?
|
||||
}
|
||||
WebFingerSubject::Url(url) => {
|
||||
let object_url = url.parse::<Url>().map_err(|e| {
|
||||
|
|
Loading…
Reference in New Issue