mod_pep_vcard_avatar: Include user field in event

Fri, 10 Jun 2016 14:58:39 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 10 Jun 2016 14:58:39 +0200
changeset 2206
724809023c92
parent 2205
98354fbea63c
child 2207
c45ad4b7aaa3

mod_pep_vcard_avatar: Include user field in event

mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua file | annotate | diff | comparison | revisions
--- 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
 

mercurial