fix: dispatcher check doesn't include trailing

This commit is contained in:
əlemi 2024-04-23 05:01:59 +02:00
parent 8150b9082d
commit 4f8132a642
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -92,7 +92,7 @@ async fn worker(db: DatabaseConnection, domain: String, poll_interval: u64, mut
},
};
let key = if delivery.actor.ends_with(&domain) {
let key = if delivery.actor == format!("https://{domain}/") {
let Some(model::application::Model { private_key: key, .. }) = model::application::Entity::find()
.one(&db).await?
else {