SocialPostDeletingNotification
Published before a post is deleted. Cancel it to keep the post.
The following properties are available within the notification
| Property Name | Type | Use |
|---|---|---|
| Post | SocialPost | The post about to be deleted, with its targets. |
| Messages | EventMessages |
Add the message to show when you cancel. |
| Cancel | bool |
Set to true to cancel without a message. |
Cancelling
Section titled “Cancelling”Call CancelOperation(new EventMessage(category, message, EventMessageType.Error)). The post is kept, and the result is post.cancelled:<message>.
The notification isn’t published for a post that doesn’t exist (post.not_found) or is being sent (post.in_flight).