diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index b71c85f73..26333d51c 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -142,7 +142,7 @@ function getEmoji(searchTerm) { commentBox.setAttribute('data-curr-pos', newPos.toString()); - if (typeof checkForRequired === "function") checkForRequired(); + commentBox.dispatchEvent(new Event('input')); const favorite_emojis = JSON.parse(localStorage.getItem("favorite_emojis")) || {} if (favorite_emojis[searchTerm]) favorite_emojis[searchTerm] += 1 diff --git a/files/routes/comments.py b/files/routes/comments.py index 29b6e60fa..f2e8519dc 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -239,7 +239,8 @@ def api_comment(v): body += f"\n\n{url}" else: return {"error": "Image/Video files only"}, 400 - if v.agendaposter and not v.marseyawarded: body = torture_ap(body, v.username) + if v.agendaposter and not v.marseyawarded and parent_post.id not in (37696,37697,37749,37833,37838): + body = torture_ap(body, v.username) if '#fortune' in body: body = body.replace('#fortune', '') @@ -629,7 +630,8 @@ def edit_comment(cid, v): for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', body, re.MULTILINE): if "wikipedia" not in i.group(1): body = body.replace(i.group(1), f'![]({i.group(1)})') - if v.agendaposter and not v.marseyawarded: body = torture_ap(body, v.username) + if v.agendaposter and not v.marseyawarded and parent_post.id not in (37696,37697,37749,37833,37838): + body = torture_ap(body, v.username) if not c.options: for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body, flags=re.A): diff --git a/files/templates/emoji_modal.html b/files/templates/emoji_modal.html index 62709f38e..b9e8c449a 100644 --- a/files/templates/emoji_modal.html +++ b/files/templates/emoji_modal.html @@ -86,7 +86,7 @@ - +