changeset 1220:afb40966cd0a

pages (forums/view): fixed microblog data serialisation when posting
author Goffi <goffi@goffi.org>
date Fri, 16 Aug 2019 17:15:42 +0200
parents 0f0c36992f3c
children 331ada56cdca
files libervia/pages/forums/view/page_meta.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/forums/view/page_meta.py	Fri Aug 16 17:14:46 2019 +0200
+++ b/libervia/pages/forums/view/page_meta.py	Fri Aug 16 17:15:42 2019 +0200
@@ -5,6 +5,7 @@
 from twisted.internet import defer
 from sat.core.i18n import _
 from sat.core.log import getLogger
+from sat.tools.common import data_format
 
 log = getLogger(__name__)
 
@@ -41,7 +42,8 @@
             self.pageError(request, C.HTTP_BAD_REQUEST)
         mb_data = {"content": body}
         try:
-            yield self.host.bridgeCall("mbSend", service, node, mb_data, profile)
+            yield self.host.bridgeCall(
+                "mbSend", service, node, data_format.serialise(mb_data), profile)
         except Exception as e:
             if "forbidden" in str(e):
                 self.pageError(request, 401)