Skip to content

SocialPostMarkingPublishedNotification

Published before a person marks a channel’s Failed or Unknown result as published (the Mark as published action, or POST targets/{id}/mark-published). A handler can change the live post’s link, or refuse.

The following properties are available within the notification

Property Name Type Use
Target SocialPostTargetInfo The target, as it is now.
PostUrl string? The live post’s link the person gave, or null. Settable.
Messages EventMessages Add the message to return when you cancel.
Cancel bool Set to true to cancel without a message.

SocialPostTargetInfo (read-only) has these properties:

Property Name Type Use
TargetId int The post’s target on this channel.
PostId int The post’s id.
ChannelKey Guid The channel.
Network string The channel’s network id.
Status TargetStatus The target’s status.
Attempt int The attempt number (0 for the first).

Call CancelOperation(new EventMessage(category, message, EventMessageType.Error)). Nothing changes, and the result is target.cancelled:<message>.

  • The target must exist, not be sealed and be Failed or Unknown (target.not_found, post.sealed, target.not_resolvable); those checks run first.
  • PostUrl must stay an absolute https URL (or null): checked before the handlers and again after them (link.https_required).

SocialPostMarkedPublishedNotification is published after the save.