WP_Post to ActivityPub-Object Transformer scope #5
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#5
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?
Maybe the transformer should not be able to control certain fields of the objects:
Also id is currently fetched from get_permalink, but maybe the internal guid of wordpress would make more sense, because permalinks might change.
Question: Why isn't the WordPress internal guid of each post used as the
id
? Currently the permalink is used, which might change and is not unique to a post.I think the transformer should be able to control it, but it should be easier to not control it (setting defaults somehow).
regarding the id: if i read this document right, it should be a IRI, so just the internal guid isn't enough, maybe in combination with the domain
Look at the WordPress queries. Each guid can be queried directly via an http request.
I actually meant that, but did not write it that way:
let's do that!
Issue has been discussed a lot with upstream developers. This won't be prioritized now, more important is to find a good permanent non-changeable id for each post, e.g. for the post type
page
the changeable permalink is used asguid
.