diff --git a/web/src/objects/item.rs b/web/src/objects/item.rs index 3fc75df6..5a743fbd 100644 --- a/web/src/objects/item.rs +++ b/web/src/objects/item.rs @@ -37,15 +37,19 @@ pub fn Object( let content = mdhtml::safe_html(object.content().unwrap_or_default()); let audience_badge = object.audience().id().str() - .map(|x| view! { - - - & - - {Uri::pretty(&x, 30)} - - - + .map(|x| { + // TODO this isn't guaranteed to work every time... + let name = x.split('/').last().unwrap_or_default().to_string(); + view! { + + + & + + {name} + + + + } }); let tag_badges = object.tag()