features: use AWARDS feature for awarding, not badges

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-31 23:53:27 -05:00
parent 67b56fb743
commit 769f20852b
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ def shop(v):
@app.post("/buy/<award>")
@limiter.limit("100/minute;200/hour;1000/day")
@auth_required
@feature_required('BADGES')
@feature_required('AWARDS')
def buy(v, award):
@ -124,7 +124,7 @@ def buy(v, award):
@limiter.limit("1/second;30/minute;200/hour;1000/day")
@limiter.limit("1/second;30/minute;200/hour;1000/day", key_func=lambda:f'{SITE}-{session.get("lo_user")}')
@is_not_permabanned
@feature_required('BADGES')
@feature_required('AWARDS')
def award_thing(v, thing_type, id):
if thing_type == 'post': thing = get_post(id)
else: thing = get_comment(id)