From 9e196b3180b0b5fc500dcd0a59988ecb4e1162ea Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 6 Jun 2024 19:40:18 +0200 Subject: [PATCH] fix: lemmy's objects are PAGEs, process them too --- upub/core/src/traits/normalize.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/upub/core/src/traits/normalize.rs b/upub/core/src/traits/normalize.rs index 03a28ce..c733048 100644 --- a/upub/core/src/traits/normalize.rs +++ b/upub/core/src/traits/normalize.rs @@ -201,7 +201,13 @@ impl AP { apb::ObjectType::Activity(_) | apb::ObjectType::Actor(_) | apb::ObjectType::Collection(_) - | apb::ObjectType::Document(_) + | apb::ObjectType::Document( + // TODO lemmy posts are PAGEs... + apb::DocumentType::Document + | apb::DocumentType::Audio + | apb::DocumentType::Image + | apb::DocumentType::Video + ) ) { return Err(apb::FieldErr("type")); }