Mercurial > libervia-web
comparison libervia/pages/blog/view/page_meta.py @ 1243:8aff742d0dd0
pages: updated `identityGet` call, following backend changes
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 19 Apr 2020 22:56:59 +0200 |
parents | f511f8fbbf8a |
children | 6b7f9c3558cc |
comparison
equal
deleted
inserted
replaced
1242:8f39d98416c5 | 1243:8aff742d0dd0 |
---|---|
116 author = blog_item.author_jid | 116 author = blog_item.author_jid |
117 if not author: | 117 if not author: |
118 log.warning(_("no author found for item {item_id}").format(item_id=blog_item.id)) | 118 log.warning(_("no author found for item {item_id}").format(item_id=blog_item.id)) |
119 else: | 119 else: |
120 if author not in identities: | 120 if author not in identities: |
121 identities[author] = yield self.host.bridgeCall('identityGet', author, profile) | 121 id_raw = yield self.host.bridgeCall( |
122 'identityGet', author, [], True, profile) | |
123 identities[author] = data_format.deserialise(id_raw) | |
122 for comment_data in blog_item.comments: | 124 for comment_data in blog_item.comments: |
123 service = comment_data['service'] | 125 service = comment_data['service'] |
124 node = comment_data['node'] | 126 node = comment_data['node'] |
125 try: | 127 try: |
126 comments_data = yield self.host.bridgeCall('mbGet', | 128 comments_data = yield self.host.bridgeCall('mbGet', |