diff src/plugins/plugin_xep_0277.py @ 1838:b3b25dbac585

plugin XEP-0277: fix bad call after methods renaming
author Goffi <goffi@goffi.org>
date Thu, 28 Jan 2016 16:44:47 +0100
parents 68c0dc13d821
children 6e547dd7f38c
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Mon Jan 25 18:04:24 2016 +0100
+++ b/src/plugins/plugin_xep_0277.py	Thu Jan 28 16:44:47 2016 +0100
@@ -507,7 +507,7 @@
         try:
             comments_node = mb_data['comments_node']
         except KeyError:
-            comments_node = self.getCommentNode(item_id)
+            comments_node = self.getCommentsNode(item_id)
         else:
             if not comments_node:
                 raise exceptions.DataError(u"if comments_node is present, it must not be empty")
@@ -515,7 +515,7 @@
         try:
             comments_service = mb_data['comments_service']
         except KeyError:
-            comments_service = self.getCommentService(client, service)
+            comments_service = self.getCommentsService(client, service)
 
         try:
             yield self._p.createNode(comments_service, comments_node, options, profile_key=profile)