Skip to content

Commit

Permalink
fixed some redundant html
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Jul 10, 2023
1 parent af58b47 commit 4e3cadf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions skythread.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ function buildParentLink(post) {
if (post.missing) {
p.innerHTML = `<i class="fa-solid fa-ban"></i> parent post has been deleted`;
} else {
let link = document.createElement('a');
let url = linkToPostThread(post);
link.innerHTML = `<i class="fa-solid fa-reply"></i><a href="${url}">See parent post (@${post.author.handle})</a>`;
p.appendChild(link);
p.innerHTML = `<i class="fa-solid fa-reply"></i><a href="${url}">See parent post (@${post.author.handle})</a>`;
}

return p;
Expand Down

0 comments on commit 4e3cadf

Please sign in to comment.