forked from MarseyWorld/MarseyWorld
fix 500 error
parent
03d5dc3a0e
commit
199a6c794f
|
@ -781,8 +781,9 @@ def admin_distinguish_comment(c_id, v):
|
|||
user_id=v.id,
|
||||
target_comment_id=comment.id
|
||||
)
|
||||
if cls == HoleAction:
|
||||
ma.hole = comment.post.hole
|
||||
g.db.add(ma)
|
||||
|
||||
|
||||
if comment.distinguished: return {"message": "Comment distinguished!"}
|
||||
else: return {"message": "Comment undistinguished!"}
|
||||
|
|
|
@ -1215,6 +1215,8 @@ def distinguish_post(post_id, v):
|
|||
user_id=v.id,
|
||||
target_post_id=post.id
|
||||
)
|
||||
if cls == HoleAction:
|
||||
ma.hole = post.hole
|
||||
g.db.add(ma)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue