minor fix

master
Aevann 2023-03-15 04:13:39 +02:00
parent 700ddc2dee
commit a2e926ef17
1 changed files with 2 additions and 1 deletions

View File

@ -979,6 +979,7 @@ def ban_user(id, v):
try: post = int(request.values["reason"].split("/post/")[1].split(None, 1)[0])
except: abort(400)
post = get_post(post)
if post.sub != 'chudrama':
post.bannedfor = f'{duration} by @{v.username}'
g.db.add(post)
elif request.values["reason"].startswith("/comment/"):