Transformer definition inconsistent #6
Labels
No labels
Mandatory
duplicate
enhancement
help wanted
invalid
question
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Event-Federation/documentation#6
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?
In our current document, we have (at least) 3 definitions of transformers:
ActivityPub object types-WordPress post types Matrix
post to Note, Article, Image, Audio or Article depending on the post-format
Should a transformer be always a many-to-one relationship [...]
Should a transformer [...] be a many-to-many one
I don't see the advantage for many-to-x transformers, maybe somebody can give me a useful example. If not it would increase complexity in the user-interface and control flow of the plugin
I see the use of x-to-many transformers, not only in an multiple type way, rather than in an multiple types an objects way, see Castropod
some examples i want one transformer could be able to:
so i would propose a one-to-many transformer definition. which would also be easy to fit into a user-interface as it would only describe: this post-type should be handled by that transformer.
The current transformer already is a many-to-x one. It can transform all built-in and custom post types to a
Note
. And it has a template engine built-in. So that one can always just share the post title and the post link as aNote
. If someone wishes to do that... I would consider it as a bad practice though...Note: technically the object type can be an array: https://www.w3.org/TR/activitystreams-core/#ex6-jsonld
solved by #7