fix admin notes

pull/225/head
Aevann 2024-03-10 20:27:31 +02:00
parent 0f13ea3b54
commit 7b13af6183
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ def comment(v):
g.db.add(c)
g.db.flush()
if not posting_to_post and request.values.get('admin_note') and v.admin_level >= PERMS['ADMIN_NOTES']:
if not posting_to_post and v.admin_level >= PERMS['ADMIN_NOTES'] and request.values.get('admin_note') == 'true' :
c.pinned = "Admin Note"
if c.parent_comment_id and c.parent_comment.pinned == "Admin Note":