This commit is contained in:
Aevann1 2022-01-29 03:20:02 +02:00
parent f626bc892f
commit ad2323c858
4 changed files with 18 additions and 13 deletions

View file

@ -168,6 +168,14 @@ def front_all(v):
posts = get_posts(ids, v=v)
if v:
if v.unban_utc and v.unban_utc < time.time():
v.is_banned = 0
v.unban_utc = 0
v.ban_evade = 0
send_repeatable_notification(v.id, "You have been unbanned!")
g.db.add(v)
g.db.commit()
if v.hidevotedon: posts = [x for x in posts if not hasattr(x, 'voted') or not x.voted]
if v.agendaposter_expires_utc and v.agendaposter_expires_utc < time.time():