Software /
code /
prosody-modules
Changeset
2206:724809023c92
mod_pep_vcard_avatar: Include user field in event
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Jun 2016 14:58:39 +0200 |
parents | 2205:98354fbea63c |
children | 2207:c45ad4b7aaa3 |
files | mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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