From 2f68c0c88d68092ff39064c9f909da92d44b95bc Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 26 Nov 2024 18:08:04 +0000 Subject: [PATCH] accounts: Don't send promotional messages to newly registered users Signed-off-by: Michael Tremer --- src/backend/accounts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/accounts.py b/src/backend/accounts.py index eaa43161..237bde22 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -527,6 +527,9 @@ class Accounts(Object): "auth/messages/profile-setup-2", after=datetime.timedelta(days=7), ) + # Create a timestamp so we won't send promotional messages too soon + account.promotional_message_sent() + return account def create(self, uid, email, first_name, last_name, country_code=None): -- 2.47.2