1
0
Fork 0
forked from alemi/upub

fix: cheap fix for mastodon contexts

This commit is contained in:
əlemi 2024-04-22 00:01:09 +02:00
parent 41b9ee4044
commit 96524dbd6f
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -34,8 +34,10 @@ pub async fn page(
let context = if id.starts_with('+') {
format!("https://{}", id.replacen('+', "", 1).replace('@', "/"))
} else if id.starts_with("tag:") {
id.clone()
} else {
url!(ctx, "/context/{id}")
url!(ctx, "/context/{id}") // TODO need a better way to figure out which ones are our contexts
};
let items = model::addressing::Entity::find_objects()