don't allow flairlocks on ghost posts (#358)

flairlocks can expose ghosts
remotes/1693045480750635534/spooky-22
justcool393 2022-09-17 17:09:01 -07:00 committed by GitHub
parent 8b25bd8d0c
commit 50f60a5b5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -289,6 +289,7 @@ def award_thing(v, thing_type, id):
badge_grant(user=author, badge_id=28)
elif kind == "flairlock":
if thing.ghost: abort(403)
new_name = note[:100].replace("𒐪","")
if not new_name and author.flairchanged:
author.flairchanged += 86400