very needful update
parent
e30cc4a2b7
commit
b0fb782b3c
|
@ -257,6 +257,9 @@ def comment(v):
|
|||
|
||||
body_html = sanitize(body_for_sanitize, limit_pings=5, showmore=(not v.marseyawarded), count_emojis=not v.marsify)
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
body_html += '<p>/s</p>'
|
||||
|
||||
if post_target.id not in ADMIGGER_THREADS and not (v.chud and v.chud_phrase in body.lower()):
|
||||
existing = g.db.query(Comment.id).filter(
|
||||
Comment.author_id == v.id,
|
||||
|
@ -671,6 +674,9 @@ def edit_comment(cid, v):
|
|||
|
||||
body_html = sanitize(body_for_sanitize, golden=False, limit_pings=5, showmore=(not v.marseyawarded))
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
body_html += '<p>/s</p>'
|
||||
|
||||
if len(body_html) > COMMENT_BODY_HTML_LENGTH_LIMIT: abort(400)
|
||||
|
||||
if v.id == c.author_id and v.marseyawarded and marseyaward_body_regex.search(body_html):
|
||||
|
|
|
@ -514,6 +514,9 @@ def submit_post(v, sub=None):
|
|||
|
||||
body_html = sanitize(body_for_sanitize, count_emojis=True, limit_pings=100)
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
body_html += '<p>/s</p>'
|
||||
|
||||
if v.marseyawarded and marseyaward_body_regex.search(body_html):
|
||||
abort(400, "You can only type marseys!")
|
||||
|
||||
|
@ -1010,6 +1013,9 @@ def edit_post(pid, v):
|
|||
|
||||
body_html = sanitize(body_for_sanitize, golden=False, limit_pings=100)
|
||||
|
||||
if SITE_NAME == 'rDrama':
|
||||
body_html += '<p>/s</p>'
|
||||
|
||||
if v.id == p.author_id and v.marseyawarded and marseyaward_body_regex.search(body_html):
|
||||
abort(403, "You can only type marseys!")
|
||||
|
||||
|
|
Loading…
Reference in New Issue