In Lemmy, the default object type for a Post is **Page**, which inherits its properties from **Document**.
#2345
Jiwoon-Kim
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Lemmy, the default object type for a
PostisPage, which inherits its properties fromDocument.According to the ActivityStreams specification:
📄
[Page](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-page)is a subtype of
Document, just likeAudio,Image, orVideo.In fact,
Documentobjects such as PDFs are something WordPress can already manage quite well through the Media Library.That’s why it seems natural to consider mapping the WordPress Media Library to a Document object controller within the ActivityPub context.
However, there’s a key complication:
since Lemmy uses the Page object as the default post type, directly mapping the WordPress Page post type to the ActivityPub
Pageobject becomes quite tricky.WordPress Pages are conceptually used for static content or hierarchical site structure, not for user-generated posts or discussions.
Therefore, using
Pageas the ActivityPub type for posts could introduce confusion — both semantically and structurally — especially when aligning with Lemmy’s federation model.Would you like me to expand this into a proposal paragraph (e.g., suggesting an alternative mapping like
Noteor customObjectTypemeta for CPTs)?Beta Was this translation helpful? Give feedback.
All reactions