fix(routes): frontend url now is not optional
This commit is contained in:
parent
b67d278bd8
commit
1f36091ce3
1 changed files with 2 additions and 2 deletions
|
@ -75,8 +75,8 @@ pub async fn view(
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO this is known "magically" !! very tight coupling ouchhh
|
// TODO this is known "magically" !! very tight coupling ouchhh
|
||||||
if let Some(ref fe) = ctx.cfg().instance.frontend {
|
if !ctx.cfg().instance.frontend.is_empty() {
|
||||||
user = user.set_url(Node::link(format!("{fe}/actors/{id}")));
|
user = user.set_url(Node::link(format!("{}/actors/{id}", ctx.cfg().instance.frontend)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(JsonLD(user.ld_context()))
|
Ok(JsonLD(user.ld_context()))
|
||||||
|
|
Loading…
Add table
Reference in a new issue