this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(feedweb): drop cursor unless at limit

+5 -2
+5 -2
feedweb.py
··· 42 42 return debug, headers 43 43 44 44 posts = feed_manager.serve_feed(feed_uri, limit, offset, langs, debug=False) 45 - offset += len(posts) 46 45 47 - return dict(cursor=str(offset), feed=[dict(post=uri) for uri in posts]) 46 + if len(posts) == limit: 47 + offset += len(posts) 48 + return dict(cursor=str(offset), feed=[dict(post=uri) for uri in posts]) 49 + else: 50 + return dict(feed=[dict(post=uri) for uri in posts]) 48 51 49 52 app.wsgi_app = DispatcherMiddleware(app.wsgi_app, { 50 53 '/metrics': make_wsgi_app()