Software /
code /
verse
Diff
plugins/pep.lua @ 470:e690759c5072
pep: Include item id in event
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 Mar 2023 09:27:27 +0000 |
parent | 415:37674f8ce263 |
line wrap: on
line diff
--- a/plugins/pep.lua Fri Mar 17 09:26:45 2023 +0000 +++ b/plugins/pep.lua Fri Mar 17 09:27:27 2023 +0000 @@ -9,7 +9,7 @@ stream.pep = {}; stream:hook("pubsub/event", function(event) - return stream:event("pep/"..event.node, { from = event.from, item = event.item.tags[1] } ); + return stream:event("pep/"..event.node, { from = event.from, id = event.item.attr.id, item = event.item.tags[1] } ); end); function stream:hook_pep(node, callback, priority)