diff libervia/pages/forums/topics/page_meta.py @ 1266:6b7f9c3558cc

server, pages: better identities handling: - own identity is now retrieve on connection - use session identities all the time, fixed pages where an empty dict was used - identities and own_jid are alway set in template_data for normal rendering
author Goffi <goffi@goffi.org>
date Tue, 19 May 2020 11:02:32 +0200
parents 8aff742d0dd0
children 6dfcdbeb0d33
line wrap: on
line diff
--- a/libervia/pages/forums/topics/page_meta.py	Tue May 19 11:02:31 2020 +0200
+++ b/libervia/pages/forums/topics/page_meta.py	Tue May 19 11:02:32 2020 +0200
@@ -29,7 +29,9 @@
     topics, metadata = yield self.host.bridgeCall(
         "forumTopicsGet", service.full(), node, {}, profile
     )
-    template_data["identities"] = identities = {}
+    identities = self.host.getSessionData(
+        request, session_iface.ISATSession
+    ).identities
     for topic in topics:
         parsed_uri = xmpp_uri.parseXMPPUri(topic["uri"])
         author = topic["author"]