forked from alemi/upub
fix: proper addressing, ctx.base() with trailing /
maybe aode-relay (and rust IRI parser) goes mad if there's no trailing slash? idk, i'm speculating
This commit is contained in:
parent
63d78e7ff5
commit
8150b9082d
2 changed files with 4 additions and 4 deletions
|
@ -117,10 +117,10 @@ async fn main() {
|
|||
object: Some(actor.clone()),
|
||||
target: None,
|
||||
published: chrono::Utc::now(),
|
||||
cc: model::Audience::default(),
|
||||
bcc: model::Audience::default(),
|
||||
to: model::Audience::default(),
|
||||
to: model::Audience(vec![actor.clone()]),
|
||||
bto: model::Audience::default(),
|
||||
cc: model::Audience(vec![apb::target::PUBLIC.to_string()]),
|
||||
bcc: model::Audience::default(),
|
||||
};
|
||||
model::activity::Entity::insert(activity_model.into_active_model())
|
||||
.exec(ctx.db()).await.expect("could not insert activity in db");
|
||||
|
|
|
@ -84,7 +84,7 @@ impl Context {
|
|||
}
|
||||
|
||||
pub fn base(&self) -> String {
|
||||
format!("{}{}", self.0.protocol, self.0.domain)
|
||||
format!("{}{}/", self.0.protocol, self.0.domain)
|
||||
}
|
||||
|
||||
pub fn uri(&self, entity: &str, id: String) -> String {
|
||||
|
|
Loading…
Reference in a new issue