feat: add frontend url to users
This commit is contained in:
parent
3fee57891d
commit
e3831650ca
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ pub async fn view(
|
|||
user = user.set_following_count(None);
|
||||
}
|
||||
|
||||
if let Some(ref fe) = ctx.cfg().instance.frontend {
|
||||
user = user.set_url(Node::link(format!("{fe}/actors/{id}")));
|
||||
}
|
||||
|
||||
Ok(JsonLD(user.ld_context()))
|
||||
},
|
||||
// remote user
|
||||
|
|
Loading…
Reference in a new issue