Mercurial > libervia-web
changeset 1432:fa6fe9511aca
pages (forums/topics): deserialise extra + use pagination
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 06 Jun 2021 19:37:05 +0200 |
parents | 7472d5a88006 |
children | 1a5410981c45 |
files | libervia/pages/forums/topics/page_meta.py |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/pages/forums/topics/page_meta.py Fri Jun 04 17:57:29 2021 +0200 +++ b/libervia/pages/forums/topics/page_meta.py Sun Jun 06 19:37:05 2021 +0200 @@ -34,9 +34,17 @@ service, node = data["service"], data["node"] request.template_data.update({"service": service, "node": node}) template_data = request.template_data + page_max = data.get("page_max", 20) + extra = self.getPubsubExtra(request, page_max=page_max) topics, metadata = await self.host.bridgeCall( - "forumTopicsGet", service.full(), node, {}, profile + "forumTopicsGet", + service.full(), + node, + extra, + profile ) + metadata = data_format.deserialise(metadata) + self.setPagination(request, metadata) identities = self.host.getSessionData( request, session_iface.ISATSession ).identities