Mercurial > libervia-backend
changeset 1820:3c8cf120a0fd
plugin XEP-0277: added missing author_email parsing
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 22 Jan 2016 20:24:17 +0100 |
parents | c271087d2020 |
children | d6062afdd54f |
files | src/plugins/plugin_xep_0277.py |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py Fri Jan 22 20:24:17 2016 +0100 +++ b/src/plugins/plugin_xep_0277.py Fri Jan 22 20:24:17 2016 +0100 @@ -416,6 +416,11 @@ author_jid_s = client.jid.userhost() author_elt.addElement('uri', content="xmpp:{}".format(author_jid_s)) + try: + author_jid_s = data['author_email'] + except KeyError: + pass + ## published/updated time ## current_time = time.time() entry_elt.addElement('updated',