forked from rDrama/rDrama
1
0
Fork 0

Revert "very needful update"

This reverts commit b0fb782b3c.
master
Aevann 2023-08-23 05:26:41 +03:00
parent 1769f7941e
commit 1705893fa6
2 changed files with 0 additions and 12 deletions

View File

@ -257,9 +257,6 @@ 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,
@ -674,9 +671,6 @@ 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):

View File

@ -514,9 +514,6 @@ 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!")
@ -1013,9 +1010,6 @@ 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!")