Changeset

470:e690759c5072

pep: Include item id in event
author Matthew Wild <mwild1@gmail.com>
date Fri, 17 Mar 2023 09:27:27 +0000
parents 469:b49d5df43a4c
children 471:788d4d91ef6b
files plugins/pep.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)