|
|
@ -62,10 +62,11 @@ window.addEventListener('settingsReady', function(event) { //after domcontentloa |
|
|
|
el.remove(); |
|
|
|
el.remove(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//add backlink to quoted posts
|
|
|
|
for (let j = 0; j < postData.quotes.length; j++) { |
|
|
|
for (let j = 0; j < postData.quotes.length; j++) { |
|
|
|
const quoteData = postData.quotes[j]; |
|
|
|
const quoteData = postData.quotes[j]; |
|
|
|
//add backlink to quoted posts
|
|
|
|
const quotedPost = document.querySelector(`.post-container[data-post-id="${quoteData.postId}"][data-board="${postData.board}"]`); |
|
|
|
const quotedPost = document.getElementById(quoteData.postId).nextSibling; |
|
|
|
if (quotedPost) { //check if exists, it wont necessarily, e.g. global/manage recent pages
|
|
|
|
let replies = quotedPost.querySelector('.replies'); |
|
|
|
let replies = quotedPost.querySelector('.replies'); |
|
|
|
if (!replies) { |
|
|
|
if (!replies) { |
|
|
|
const quotedPostData = quotedPost.querySelector('.post-data'); |
|
|
|
const quotedPostData = quotedPost.querySelector('.post-data'); |
|
|
@ -87,6 +88,7 @@ window.addEventListener('settingsReady', function(event) { //after domcontentloa |
|
|
|
replies.appendChild(newReply); |
|
|
|
replies.appendChild(newReply); |
|
|
|
replies.appendChild(space); |
|
|
|
replies.appendChild(space); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
const newPostAnchor = document.getElementById(postData.postId); |
|
|
|
const newPostAnchor = document.getElementById(postData.postId); |
|
|
|
const newPost = newPostAnchor.nextSibling; |
|
|
|
const newPost = newPostAnchor.nextSibling; |
|
|
|
if (scrollEnabled) { |
|
|
|
if (scrollEnabled) { |
|
|
|