fix: exclude proto from domain check
This commit is contained in:
parent
f10b6974f4
commit
2bd9b39ed0
1 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ impl apb::server::Outbox for Context {
|
||||||
.set_attributed_to(Node::link(uid.clone()))
|
.set_attributed_to(Node::link(uid.clone()))
|
||||||
.set_published(Some(chrono::Utc::now()))
|
.set_published(Some(chrono::Utc::now()))
|
||||||
.set_url(Node::maybe_link(self.cfg().instance.frontend.as_ref().map(|x| format!("{x}/objects/{raw_oid}")))),
|
.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?;
|
).await?;
|
||||||
|
|
||||||
let activity_model = model::activity::Model {
|
let activity_model = model::activity::Model {
|
||||||
|
@ -67,7 +67,7 @@ impl apb::server::Outbox for Context {
|
||||||
.set_bto(activity.bto())
|
.set_bto(activity.bto())
|
||||||
.set_cc(activity.cc())
|
.set_cc(activity.cc())
|
||||||
.set_bcc(activity.bcc()),
|
.set_bcc(activity.bcc()),
|
||||||
Some(self.base().to_string()),
|
Some(self.domain().to_string()),
|
||||||
).await?;
|
).await?;
|
||||||
|
|
||||||
let activity_model = model::activity::Model::new(
|
let activity_model = model::activity::Model::new(
|
||||||
|
|
Loading…
Reference in a new issue