forked from rDrama/rDrama
fix 502 error
parent
42e0b62f46
commit
8dc5cd67c7
|
@ -924,7 +924,7 @@ def unsave_post(pid, v):
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400)
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
@auth_required
|
@auth_required
|
||||||
def pin_post(post_id, v):
|
def profile_pin(post_id, v):
|
||||||
p = get_post(post_id)
|
p = get_post(post_id)
|
||||||
if p:
|
if p:
|
||||||
if v.id != p.author_id: abort(403, "Only the post author can do that!")
|
if v.id != p.author_id: abort(403, "Only the post author can do that!")
|
||||||
|
|
Loading…
Reference in New Issue