comparison libervia/web/pages/chat/page_meta.py @ 1543:f00497c00e38

pages (chat): fix `own_jid` exposure: `own_jid` is a `JID` instance, and must be casted to str to be exposed.
author Goffi <goffi@goffi.org>
date Thu, 06 Jul 2023 12:05:48 +0200
parents dc81403a5b2f
children 7941444c1671
comparison
equal deleted inserted replaced
1542:fb31d3dba0c3 1543:f00497c00e38
98 template_data["target_jid"] = target_jid 98 template_data["target_jid"] = target_jid
99 template_data["chat_type"] = chat_type 99 template_data["chat_type"] = chat_type
100 self.expose_to_scripts( 100 self.expose_to_scripts(
101 request, 101 request,
102 room_subject=room_subject, 102 room_subject=room_subject,
103 own_jid=own_jid, 103 own_jid=str(own_jid),
104 target_jid=target_jid, 104 target_jid=target_jid,
105 chat_type=chat_type, 105 chat_type=chat_type,
106 ) 106 )
107 107
108 108