diff --git a/files/routes/comments.py b/files/routes/comments.py index 012a9dc91..869bcde1f 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -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 += '

/s

' + 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 += '

/s

' + 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): diff --git a/files/routes/posts.py b/files/routes/posts.py index 90278fd5b..fa38dbe86 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -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 += '

/s

' + 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 += '

/s

' + if v.id == p.author_id and v.marseyawarded and marseyaward_body_regex.search(body_html): abort(403, "You can only type marseys!")