forked from rDrama/rDrama
1
0
Fork 0

fix 500 error for chud award on profile wall

master
Aevann1 2022-12-22 17:19:31 +02:00
parent b96c0642bd
commit e6b7b23605
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ def award_thing(v, thing_type, id):
g.db.add(thing)
elif kind == "agendaposter":
if thing_type == 'post' and thing.sub == 'chudrama' \
or thing_type == 'comment' and thing.post.sub == 'chudrama':
or thing_type == 'comment' and thing.post and thing.post.sub == 'chudrama':
abort(403, "You can't give the chud award in /h/chudrama")
if author.marseyawarded: