dfs
This commit is contained in:
parent
f626bc892f
commit
ad2323c858
4 changed files with 18 additions and 13 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue