Change default notification settings

This commit is contained in:
rubenwardy 2020-12-06 15:04:09 +00:00
parent 3aa12be544
commit 55dc6460d2
2 changed files with 4 additions and 5 deletions

View File

@ -297,7 +297,6 @@ def verify_email():
"Your email address has changed. If you didn't request this, please contact an administrator.")
user.is_active = True
user.notification_preferences = user.notification_preferences or UserNotificationPreferences(user)
user.email = ver.email
db.session.delete(ver)

View File

@ -426,12 +426,12 @@ class UserNotificationPreferences(db.Model):
def __init__(self, user):
self.user = user
self.pref_package_edit = 1
self.pref_package_approval = 2
self.pref_new_thread = 2
self.pref_package_approval = 1
self.pref_new_thread = 1
self.pref_new_review = 1
self.pref_thread_reply = 2
self.pref_maintainer = 2
self.pref_editor_alert = 2
self.pref_maintainer = 1
self.pref_editor_alert = 1
self.pref_editor_misc = 0
self.pref_other = 0