sad
This commit is contained in:
parent
2688e1cfce
commit
3450d3c257
3 changed files with 6 additions and 4 deletions
|
@ -142,7 +142,7 @@ function getEmoji(searchTerm) {
|
||||||
|
|
||||||
commentBox.setAttribute('data-curr-pos', newPos.toString());
|
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")) || {}
|
const favorite_emojis = JSON.parse(localStorage.getItem("favorite_emojis")) || {}
|
||||||
if (favorite_emojis[searchTerm]) favorite_emojis[searchTerm] += 1
|
if (favorite_emojis[searchTerm]) favorite_emojis[searchTerm] += 1
|
||||||
|
|
|
@ -239,7 +239,8 @@ def api_comment(v):
|
||||||
body += f"\n\n{url}"
|
body += f"\n\n{url}"
|
||||||
else: return {"error": "Image/Video files only"}, 400
|
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:
|
if '#fortune' in body:
|
||||||
body = body.replace('#fortune', '')
|
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):
|
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'})')
|
if "wikipedia" not in i.group(1): body = body.replace(i.group(1), f'})')
|
||||||
|
|
||||||
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:
|
if not c.options:
|
||||||
for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body, flags=re.A):
|
for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body, flags=re.A):
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=234"></script>
|
<script data-cfasync="false" src="/static/assets/js/emoji_modal.js?a=237"></script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
a.emojitab {
|
a.emojitab {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue