observe_comment_insert/2

Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of the resource commented on.

Type:

notify

Return:

#comment_insert{} properties:

  • comment_id: integer

  • id: m_rsc:resource_id()

Edit on GitHub