Mercurial > libervia-web
changeset 954:7892f1a1e2cf
server (blog): temporary fix for atom feed:
max_items can't be used with MAM, but for now MAM is now detected correctly to get blogs, so max_items is disabled.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 07 Jul 2017 07:28:42 +0200 |
parents | 5cdd77190a3b |
children | 4f7cb6335a33 |
files | src/server/blog.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server/blog.py Sat Jun 24 20:19:30 2017 +0200 +++ b/src/server/blog.py Fri Jul 07 07:28:42 2017 +0200 @@ -176,10 +176,10 @@ # we want a specific item # item_ids = [request.item_id] # max_items = 1 - max_items = 0 # FIXME + max_items = C.NO_LIMIT # FIXME else: # max_items = int(request.extra_dict['rsm_max']) # FIXME - max_items = 0 + max_items = C.NO_LIMIT # TODO: use max_items only when RSM is not available if request.atom: @@ -320,7 +320,7 @@ # get the comments # max_comments = int(extra_comments_dict['rsm_max']) # FIXME - max_comments = 0 + max_comments = C.NO_LIMIT # TODO: use max_comments only when RSM is not available self.host.bridge.mbGet(item['comments_service'], item['comments_node'], max_comments, [], extra_comments_dict, C.SERVICE_PROFILE,