observe_edge_insert/2

An edge has been inserted. Note that the Context for this notification does not have the user who created the edge.

Only emitted if the edge is still present when the edge log batch is read. The sequence, creator and creation time reflect the edge at that time.

Type:

notify

Return:

return value is ignored

#edge_insert{} properties:

  • subject_id: m_rsc:resource()
  • predicate: atom
  • object_id: m_rsc:resource()
  • edge_id: pos_integer
  • seq: integer
  • creator_id: m_rsc:resource_id() | undefined
  • created: calendar:datetime()

Edit on GitHub

Observed by

Modules

mod_base

mod_base is the base module, which acts as a container module holding most of Zotonic basic dispatch rules, Actions and Module tags.

Modules

mod_backup

mod_backup serves two different purposes: it makes a nightly backup of your files and database, and can also backup/restore individual resource items.

Modules

mod_websub

WebSub keeps imported resources up to date when their source changes. A publishing site notifies subscribers instead of requiring them to poll for every update.