fix: cheap fix for mastodon contexts
This commit is contained in:
parent
41b9ee4044
commit
96524dbd6f
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue