Software /
code /
prosody-modules
Diff
mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua @ 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 |
parent | 2151:96aca307964b |
child | 2862:933049a60ce6 |
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