Adding /reader/feeds so that Android also gets a repeat visitor check.

This commit is contained in:
Samuel Clay 2015-03-12 22:46:28 -07:00
parent 3eef4bd2ea
commit c880dbac17

View file

@ -16,7 +16,8 @@ class LastSeenMiddleware(object):
def process_response(self, request, response):
if ((request.path == '/' or
request.path.startswith('/reader/refresh_feeds') or
request.path.startswith('/reader/load_feeds'))
request.path.startswith('/reader/load_feeds') or
request.path.startswith('/reader/feeds'))
and hasattr(request, 'user')
and request.user.is_authenticated()):
hour_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=60)