plugin XEP-0060, XEP-0277: added getNodeURI method
This commit is contained in:
parent
43ecaa5af9
commit
0815ee1576
1 changed files with 19 additions and 4 deletions
|
|
@ -533,10 +533,7 @@ class XEP_0277(object):
|
|||
if 'comments_node' in mb_data or 'comments_service' in mb_data:
|
||||
raise exceptions.DataError(u"You can't use comments_service/comments_node and comments at the same time")
|
||||
else:
|
||||
mb_data['comments'] = u"xmpp:%(service)s?%(query)s" % {
|
||||
'service': comments_service.userhost(),
|
||||
'query': urllib.urlencode([('node', comments_node.encode('utf-8'))])
|
||||
}
|
||||
mb_data['comments'] = self._p.getNodeURI(comments_service, comments_node)
|
||||
|
||||
def _mbSend(self, service, node, data, profile_key):
|
||||
service = jid.JID(service) if service else None
|
||||
|
|
|
|||
Loading…
Reference in a new issue