From 2bd9b39ed0635824401b29709fecc0cf98e010f4 Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 23 May 2024 02:43:26 +0200 Subject: [PATCH] fix: exclude proto from domain check --- src/server/outbox.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/outbox.rs b/src/server/outbox.rs index 1aba864d..e5d26ea9 100644 --- a/src/server/outbox.rs +++ b/src/server/outbox.rs @@ -24,7 +24,7 @@ impl apb::server::Outbox for Context { .set_attributed_to(Node::link(uid.clone())) .set_published(Some(chrono::Utc::now())) .set_url(Node::maybe_link(self.cfg().instance.frontend.as_ref().map(|x| format!("{x}/objects/{raw_oid}")))), - Some(self.base().to_string()), + Some(self.domain().to_string()), ).await?; let activity_model = model::activity::Model { @@ -67,7 +67,7 @@ impl apb::server::Outbox for Context { .set_bto(activity.bto()) .set_cc(activity.cc()) .set_bcc(activity.bcc()), - Some(self.base().to_string()), + Some(self.domain().to_string()), ).await?; let activity_model = model::activity::Model::new(