1
0
Fork 0
forked from alemi/upub

fix: exclude proto from domain check

This commit is contained in:
əlemi 2024-05-23 02:43:26 +02:00
parent f10b6974f4
commit 2bd9b39ed0
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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(