forked from MarseyWorld/MarseyWorld
make chudding affect the comment its applied on
parent
bb3c120e8c
commit
fe5261df36
|
@ -1048,6 +1048,8 @@ def chud(id, v):
|
||||||
elif id.startswith('c_'):
|
elif id.startswith('c_'):
|
||||||
comment_id = id.split('c_')[1]
|
comment_id = id.split('c_')[1]
|
||||||
comment = g.db.get(Comment, comment_id)
|
comment = g.db.get(Comment, comment_id)
|
||||||
|
comment.chudded = True
|
||||||
|
g.db.add(comment)
|
||||||
user = comment.author
|
user = comment.author
|
||||||
else:
|
else:
|
||||||
user = get_account(id)
|
user = get_account(id)
|
||||||
|
|
|
@ -382,6 +382,10 @@ def award_thing(v, thing_type, id):
|
||||||
author.chud_phrase = note.lower()
|
author.chud_phrase = note.lower()
|
||||||
|
|
||||||
badge_grant(user=author, badge_id=58)
|
badge_grant(user=author, badge_id=58)
|
||||||
|
|
||||||
|
if thing_type == 'comment':
|
||||||
|
thing.chudded = True
|
||||||
|
|
||||||
elif kind == "flairlock":
|
elif kind == "flairlock":
|
||||||
new_name = note[:100]
|
new_name = note[:100]
|
||||||
new_name = remove_cuniform(new_name)
|
new_name = remove_cuniform(new_name)
|
||||||
|
|
Loading…
Reference in New Issue