plugin groupblog, XEP-0277: store both published and updated timestamps
This commit is contained in:
parent
13a644531f
commit
5b623dbb5c
1 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue