plugin groupblog, XEP-0277: store both published and updated timestamps

This commit is contained in:
souliane 2013-12-19 13:54:40 +01:00
commit 5b623dbb5c

View file

@ -411,6 +411,8 @@ class GroupBlog(object):
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