better inclusion comments
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
$(document).ready(function() {
|
||||
|
||||
// check if we show a blog post or not
|
||||
var isArticle = /\/?articles\/\d\d\d\d\/\d\d\/\d\d\/.+$/.test(RelPermalink);
|
||||
// check if we show a blog post or not. You might have to adapt this
|
||||
var isArticle = /\/?blog\/\d\d\d\d\/.+$/.test(RelPermalink);
|
||||
if (isArticle === false) {
|
||||
console.log("Not a blog post, no need to search for comments");
|
||||
return;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: "https://www.schiessle.org/mastodon.comments/getcomments.php",
|
||||
url: "/comments/getcomments.php",
|
||||
type: "get",
|
||||
data: {
|
||||
search : RelPermalink
|
||||
|
||||
Reference in New Issue
Block a user