# HG changeset patch # User Goffi # Date 1499405322 -7200 # Node ID 7892f1a1e2cf1c8b70a36e94a40faf1c8562b68b # Parent 5cdd77190a3b9c99d14320213791c7f15f30694d 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. diff -r 5cdd77190a3b -r 7892f1a1e2cf src/server/blog.py --- 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,