1
0
Fork 0
forked from alemi/upub

feat: add frontend url to users

This commit is contained in:
əlemi 2024-05-29 21:37:21 +02:00
parent 3fee57891d
commit e3831650ca
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -70,6 +70,10 @@ pub async fn view(
user = user.set_following_count(None); 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())) Ok(JsonLD(user.ld_context()))
}, },
// remote user // remote user