Add delete/unpublish from remote platform capability #131
Reference in New Issue
Block a user
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?
Summary
There is currently no way to delete or unpublish a cross-posted item from the remote platform. The
MokoSuiteCrossServiceInterfaceonly definespublish()— there is nodeletePost()orunpublish()method.When a user unpublishes or trashes a Joomla article, the cross-posted content remains live on all platforms.
Proposed changes
1. Add
deletePost()to the service interface2. Implement in service plugins
Not all platforms support deletion — the interface method should have a default "not supported" response, and each plugin can override where the API allows it:
3. Hook into Joomla content events
onContentChangeState(unpublish) → optionally delete from platformsonContentAfterDelete(trash/delete) → optionally delete from platforms4. UI additions
Acceptance Criteria
deletePost()method added to interface with default "not supported" return