From 0f5b04ad7a4f46e62e17bd9ef7a9915089c30a99 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 11 Jul 2022 12:04:13 +0200 Subject: [PATCH] dont surprise new users on rdrama with 835 notifications --- files/classes/user.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 87da6935a..3a7c3e7c8 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -147,7 +147,9 @@ class User(Base): kwargs["passhash"] = self.hash_password(kwargs["password"]) kwargs.pop("password") - if "created_utc" not in kwargs: kwargs["created_utc"] = int(time.time()) + if "created_utc" not in kwargs: + kwargs["created_utc"] = int(time.time()) + kwargs["last_viewed_post_notifs"] = kwargs["created_utc"] super().__init__(**kwargs)