Class representation of ActivityPub Object Types #1
Labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Event-Federation/wordpress-activitypub#1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ruru4143 The current ActivityPub implementation does not use any real object oriented expandations of "Base_Object", rather Base_Object leaves all freedom to just put the "right" content everywhere.
If we think of the way we implement transformers, should we still stick to this approach where a transformer kind of can "decorate" the ActivityPub object, or should it select a available ActivityPub object (those could also be added via an addon system...)
My current opinion is, that the ActivityPub plugin should ship different object types as classes.
The question if if common extensions used by most software for a specific object type should be already included in the class.
The main advantage of this approach is that other transformers have a clear guideline visible which properties can/need to be set.
The current draft already uses PHP-docs for the JSON-LD context, but we could also use those to add information whether this field needs to be set for example in the Event object for compatibility with Mobilizon.
Object Typeto Class representation of ActivityPub Object TypesI agree with your opinion on adding common object types and i also like your idea of coupling the properties and the context via the PHP-docs
See https://github.com/Automattic/wordpress-activitypub/pull/629