plugin blog import: mb_data handle unicode only, so comments_service must be a unicode and not a JID

This commit is contained in:
Goffi 2016-02-24 16:11:36 +01:00
commit 69df5fc49c

View file

@ -202,7 +202,7 @@ class BlogImportPlugin(object):
allow_comments = C.bool(mb_data.get('allow_comments', C.BOOL_FALSE))
if allow_comments:
comments_service, comments_node = self._m.getCommentsService(client), self._m.getCommentsNode(item_id)
mb_data['comments_service'] = comments_service
mb_data['comments_service'] = comments_service.full()
mb_data['comments_node'] = comments_node
else:
if data['comments'][0]: