diff --git a/app/blueprints/users/account.py b/app/blueprints/users/account.py index 22f422aa..a5a0b214 100644 --- a/app/blueprints/users/account.py +++ b/app/blueprints/users/account.py @@ -340,6 +340,9 @@ def unsubscribe_manage(sub: EmailSubscription): user = User.query.filter_by(email=sub.email).first() if request.method == "POST": + if user: + user.email = None + sub.blacklisted = True db.session.commit()