changeset 1478:10ccad665d57

pages (blog/view): use rich content for comments
author Goffi <goffi@goffi.org>
date Thu, 21 Oct 2021 17:37:59 +0200
parents b28025a7cc28
children 095e94ca6728
files libervia/pages/blog/view/page_meta.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/blog/view/page_meta.py	Thu Oct 21 17:36:17 2021 +0200
+++ b/libervia/pages/blog/view/page_meta.py	Thu Oct 21 17:37:59 2021 +0200
@@ -312,7 +312,9 @@
         uri_args['node'] = node
     if item_id:
         uri_args['item'] = item_id
-    template_data['xmpp_uri'] = uri.buildXMPPUri('pubsub', subtype='microblog', **uri_args)
+    template_data['xmpp_uri'] = uri.buildXMPPUri(
+        'pubsub', subtype='microblog', **uri_args
+    )
 
 
 async def on_data_post(self, request):
@@ -325,7 +327,7 @@
 
         if not body:
             self.pageError(request, C.HTTP_BAD_REQUEST)
-        comment_data = {"content": body}
+        comment_data = {"content_rich": body}
         try:
             await self.host.bridgeCall('mbSend',
                                        service,