diff --git a/files/helpers/awards.py b/files/helpers/awards.py index 1ec9ff65a..20007df9b 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -87,7 +87,7 @@ def award_timers(v, bot=False): notify_if_not_bot("Your owoify status has expired!") dirty = True if v.marsify and v.marsify != 1 and v.marsify < now: - v.marsify = None + v.marsify = 0 if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!") dirty = True diff --git a/files/routes/settings.py b/files/routes/settings.py index 7101a1aab..8e2b29245 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -100,6 +100,10 @@ def settings_profile_post(v): updated = True v.is_nofollow = request.values.get("nofollow") == 'true' + elif request.values.get("marsify", v.marsify) != v.marsify and v.marsify <= 1: + updated = True + v.marsify = int(request.values.get("marsify") == 'true') + elif request.values.get("bio") == "": v.bio = None v.bio_html = None diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 426ecf30a..2b6f90b9a 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -743,6 +743,24 @@ +