aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorFChannel <>2021-06-17 11:38:27 -0700
committerFChannel <>2021-06-17 11:38:27 -0700
commita257a631ad6c9d6bcb3ae91057ca74a5e1d9515c (patch)
tree2dbc4130d03e47bd5e5f845e15dc4b874f528c06 /static
parent092cfce209ac6eb2878242378afcda539709a4af (diff)
replacing quotes for hover preview because it breaks without it
Diffstat (limited to 'static')
-rw-r--r--static/js/posts.js12
1 files 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, '<a class="reply" title="' + q + '" href="'+ (actorName) + "/" + shortURL(actorName, opid) + '#' + shortURL(actorName, link) + '";">>>' + shortURL(actorName, link) + isOP + '</a>');
})
@@ -143,8 +144,8 @@ function convertContent(actorName, content, opid)
if(match)
{
match.forEach(function(quote, i) {
+
newContent = newContent.replace(quote, '<span class="quote">' + quote + '</span>');
- newContent = newContent.replace(quote, '<span class="quote">' + quote + '</span>');
})
}
@@ -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()