mirror of
https://github.com/minetest/contentdb.git
synced 2024-09-19 20:38:31 +02:00
Change default notification settings
This commit is contained in:
parent
3aa12be544
commit
55dc6460d2
@ -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)
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user