fsd
This commit is contained in:
parent
e1df0e55cf
commit
02a59ae06c
1 changed files with 8 additions and 8 deletions
|
@ -85,7 +85,7 @@ gevent.spawn(leaderboard_thread())
|
||||||
@auth_required
|
@auth_required
|
||||||
def upvoters_posts(v, username, uid):
|
def upvoters_posts(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ def upvoters_posts(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def upvoters_comments(v, username, uid):
|
def upvoters_comments(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -127,7 +127,7 @@ def upvoters_comments(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def downvoters_posts(v, username, uid):
|
def downvoters_posts(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ def downvoters_posts(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def downvoters_comments(v, username, uid):
|
def downvoters_comments(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -172,7 +172,7 @@ def downvoters_comments(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def upvoting_posts(v, username, uid):
|
def upvoting_posts(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -193,7 +193,7 @@ def upvoting_posts(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def upvoting_comments(v, username, uid):
|
def upvoting_comments(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -214,7 +214,7 @@ def upvoting_comments(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def downvoting_posts(v, username, uid):
|
def downvoting_posts(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
@ -235,7 +235,7 @@ def downvoting_posts(v, username, uid):
|
||||||
@auth_required
|
@auth_required
|
||||||
def downvoting_comments(v, username, uid):
|
def downvoting_comments(v, username, uid):
|
||||||
u = get_user(username)
|
u = get_user(username)
|
||||||
if u.is_private and v.id != u.id: return render_template("userpage_private.html", u=u, v=v)
|
if u.is_private and v.id != u.id: abort(403)
|
||||||
id = u.id
|
id = u.id
|
||||||
uid = int(uid)
|
uid = int(uid)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue