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! {
{post_inner}}.into_view(), + // wordpress, ... ? + Some(apb::ObjectType::Article) => view! { +
missing object type
}.into_view(),
};
view! {