Community Modules


changeset 724809023c92

mod_pep_vcard_avatar: Include user field in event

author
Kim Alvefur
date
parents
children
files

1 files changed, 2 insertions(+), 1 deletions(-)

↓ Download patch

--- a/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Thu Jun 09 11:47:55 2016 +0200
+++ b/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Fri Jun 10 14:58:39 2016 +0200
@@ -8,6 +8,7 @@
 --
 
 local st = require "util.stanza"
+local jid = require "util.jid";
 local base64 = require"util.encodings".base64;
 local sha1 = require"util.hashes".sha1;
 
@@ -56,7 +57,7 @@
 
 local function publish(session, node, id, item)
 	return module:fire_event("pep-publish-item", {
-		actor = true, session = session, node = node, id = id, item = item;
+		actor = true, user = jid.bare(session.full_jid), session = session, node = node, id = id, item = item;
 	});
 end