fix: lemmy's objects are PAGEs, process them too

This commit is contained in:
əlemi 2024-06-06 19:40:18 +02:00
parent ec063da763
commit 9e196b3180
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -201,7 +201,13 @@ impl AP {
apb::ObjectType::Activity(_) apb::ObjectType::Activity(_)
| apb::ObjectType::Actor(_) | apb::ObjectType::Actor(_)
| apb::ObjectType::Collection(_) | 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")); return Err(apb::FieldErr("type"));
} }