comparison sat_frontends/jp/cmd_blog.py @ 3586:5f65f4e9f8cb

plugin XEP-0060: getItems extra is now serialised dict
author Goffi <goffi@goffi.org>
date Wed, 28 Jul 2021 23:01:15 +0200
parents 04283582966f
children 1709f0a78f50
comparison
equal deleted inserted replaced
3585:31628770a15a 3586:5f65f4e9f8cb
598 598
599 async def getItemData(self, service, node, item): 599 async def getItemData(self, service, node, item):
600 items = [item] if item else [] 600 items = [item] if item else []
601 601
602 mb_data = data_format.deserialise( 602 mb_data = data_format.deserialise(
603 await self.host.bridge.mbGet(service, node, 1, items, {}, self.profile) 603 await self.host.bridge.mbGet(
604 service, node, 1, items, data_format.serialise({}), self.profile
605 )
604 ) 606 )
605 item = mb_data["items"][0] 607 item = mb_data["items"][0]
606 608
607 try: 609 try:
608 content = item["content_xhtml"] 610 content = item["content_xhtml"]