Mercurial > libervia-backend
diff src/plugins/plugin_misc_groupblog.py @ 770:64dd7c0f4feb
plugin groupblog, XEP-0277: store both published and updated timestamps
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 19 Dec 2013 13:54:40 +0100 |
parents | 812dc38c0094 |
children | bfabeedbf32e |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_groupblog.py Wed Dec 18 15:37:30 2013 +0100 +++ b/src/plugins/plugin_misc_groupblog.py Thu Dec 19 13:54:40 2013 +0100 @@ -411,6 +411,8 @@ if comments: node = self.getNodeName(client.jid) mblog_data['id'] = str(item_id) + if 'published' in extra: + mblog_data['published'] = extra['published'] if extra.get('allow_comments', 'False').lower() == 'true': comments_node = self.host.plugins["XEP-0277"].parseCommentUrl(comments)[1] # we could use comments_node directly but it's safer to rebuild it