mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
Adding /reader/feeds so that Android also gets a repeat visitor check.
This commit is contained in:
parent
3eef4bd2ea
commit
c880dbac17
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@ class LastSeenMiddleware(object):
|
||||||
def process_response(self, request, response):
|
def process_response(self, request, response):
|
||||||
if ((request.path == '/' or
|
if ((request.path == '/' or
|
||||||
request.path.startswith('/reader/refresh_feeds') 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 hasattr(request, 'user')
|
||||||
and request.user.is_authenticated()):
|
and request.user.is_authenticated()):
|
||||||
hour_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=60)
|
hour_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=60)
|
||||||
|
|
Loading…
Add table
Reference in a new issue