Mercurial > libervia-backend
diff src/plugins/plugin_xep_0277.py @ 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 | 7ef0f5f90862 |
children | d6062afdd54f |
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',