fds
parent
b54890bd46
commit
3928a80fa9
|
@ -244,7 +244,8 @@ def award_post(pid, v):
|
||||||
g.db.add(post.author)
|
g.db.add(post.author)
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
return redirect(request.referrer)
|
if request.referrer: return redirect(request.referrer)
|
||||||
|
else: return redirect("/")
|
||||||
|
|
||||||
|
|
||||||
@app.post("/comment/<cid>/awards")
|
@app.post("/comment/<cid>/awards")
|
||||||
|
|
Loading…
Reference in New Issue