check for existing snappy quotes
parent
2bfda7112e
commit
0da34bf23c
|
@ -205,7 +205,7 @@ def comment(v:User):
|
||||||
|
|
||||||
body = body.strip()[:COMMENT_BODY_LENGTH_LIMIT]
|
body = body.strip()[:COMMENT_BODY_LENGTH_LIMIT]
|
||||||
|
|
||||||
if v.admin_level >= PERMS['SITE_SETTINGS_SNAPPY_QUOTES'] and posting_to_submission and post_target.id == SNAPPY_THREAD and level == 1:
|
if v.admin_level >= PERMS['SITE_SETTINGS_SNAPPY_QUOTES'] and posting_to_submission and post_target.id == SNAPPY_THREAD and level == 1 and body not in SNAPPY_QUOTES:
|
||||||
with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f:
|
with open(f"snappy_{SITE_NAME}.txt", "a", encoding="utf-8") as f:
|
||||||
f.write('\n{[para]}\n' + body)
|
f.write('\n{[para]}\n' + body)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue