From 4f8132a642e77970946a1f3865f14e562d77868f Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 23 Apr 2024 05:01:59 +0200 Subject: [PATCH] fix: dispatcher check doesn't include trailing --- src/server/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/dispatcher.rs b/src/server/dispatcher.rs index 1cc8564..be80f16 100644 --- a/src/server/dispatcher.rs +++ b/src/server/dispatcher.rs @@ -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 {