mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Capping IP at 15 characters.
This commit is contained in:
parent
97b0910e67
commit
0b398f4194
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class LastSeenMiddleware(object):
|
|||
# if request.user.profile.last_seen_on < SUBSCRIBER_EXPIRE:
|
||||
# request.user.profile.refresh_stale_feeds()
|
||||
request.user.profile.last_seen_on = datetime.datetime.utcnow()
|
||||
request.user.profile.last_seen_ip = ip
|
||||
request.user.profile.last_seen_ip = ip[-15:]
|
||||
request.user.profile.save()
|
||||
|
||||
return response
|
||||
|
|
Loading…
Add table
Reference in a new issue