fdsfd
parent
4d0e1eb094
commit
e248889342
|
@ -561,7 +561,8 @@ def award_post(pid, v):
|
|||
else: author.longpost = time.time() + 86400
|
||||
send_notification(IDIO_ID, f"@{v.username} used {kind} award on {request.host_url}{post.shortlink}")
|
||||
elif kind == "bird":
|
||||
if author.longpost: return {"error": "This user is the under the effect of a conflicting award: Pizzashill award."}, 404
|
||||
if author.longpost:
|
||||
return {"error": "This user is the under the effect of a conflicting award: Pizzashill award."}, 404
|
||||
if author.bird: author.bird += 86400
|
||||
else: author.bird = time.time() + 86400
|
||||
elif kind == "eye":
|
||||
|
|
Loading…
Reference in New Issue