diff --git a/web/src/components/object.rs b/web/src/components/object.rs index 047c5668..4fcb38c1 100644 --- a/web/src/components/object.rs +++ b/web/src/components/object.rs @@ -125,21 +125,32 @@ pub fn Object(object: crate::Object) -> impl IntoView { }; let post = match object.object_type() { - Some(apb::ObjectType::Document(apb::DocumentType::Page)) => view! { + // mastodon, pleroma, misskey + Some(apb::ObjectType::Note) => view! { +
{post_inner}
+ }.into_view(), + // lemmy with Page, peertube with Video + Some(apb::ObjectType::Document(_)) => view! {
{object.name().unwrap_or_default().to_string()}
{post_inner}
- }.into_view(), // lemmy - Some(apb::ObjectType::Document(apb::DocumentType::Video)) => post_inner.into_view(), // peertube? - Some(apb::ObjectType::Note) => view! { -
{post_inner}
}.into_view(), + // wordpress, ... ? + Some(apb::ObjectType::Article) => view! { +
+

{object.name().unwrap_or_default().to_string()}

+
+ {post_inner} +
+ }.into_view(), + // everything else Some(t) => view! {

{t.as_ref().to_string()}

{post_inner} }.into_view(), + // object without type? None => view! { missing object type }.into_view(), }; view! {