From a257a631ad6c9d6bcb3ae91057ca74a5e1d9515c Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Thu, 17 Jun 2021 11:38:27 -0700
Subject: replacing quotes for hover preview because it breaks without it
---
static/js/posts.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/static/js/posts.js b/static/js/posts.js
index 78f3cae..e46fed3 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -130,8 +130,9 @@ function convertContent(actorName, content, opid)
if(document.getElementById(link + "-content") != null) {
q = document.getElementById(link + "-content").innerText;
q = q.replaceAll('>', '/\>')
+ q = q.replaceAll('"', '')
+ q = q.replaceAll("'", "")
}
-
newContent = newContent.replace(quote, '>>' + shortURL(actorName, link) + isOP + '');
})
@@ -143,8 +144,8 @@ function convertContent(actorName, content, opid)
if(match)
{
match.forEach(function(quote, i) {
+
newContent = newContent.replace(quote, '' + quote + '');
- newContent = newContent.replace(quote, '' + quote + '');
})
}
@@ -172,12 +173,11 @@ function convertContentNoLink(actorName, content, opid)
q = document.getElementById(link + "-content").innerText;
}
- newContent = newContent.replace(quote, '>>>' + shortURL(actorName, link) + isOP);
-
+ newContent = newContent.replace(quote, '>>' + shortURL(actorName, link) + isOP);
})
}
-
- return newContent
+ newContent = newContent.replaceAll("'", "")
+ return newContent.replaceAll('"', '')
}
function closeReply()
--
cgit v1.2.3