mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Dual-write last visit timestamp.
This commit is contained in:
@@ -29,6 +29,7 @@ from r2.lib.utils import constant_time_compare
|
||||
from r2.lib.cache import sgm
|
||||
from r2.lib import filters
|
||||
from r2.lib.log import log_text
|
||||
from r2.models.last_modified import LastModified
|
||||
|
||||
from pylons import c, g, request
|
||||
from pylons.i18n import _
|
||||
@@ -222,6 +223,8 @@ class Account(Thing):
|
||||
(self.name, prev_visit, current_time))
|
||||
set_last_visit(self)
|
||||
|
||||
LastModified.touch(self._fullname, "Visit")
|
||||
|
||||
def make_cookie(self, timestr=None):
|
||||
if not self._loaded:
|
||||
self._load()
|
||||
|
||||
Reference in New Issue
Block a user