diff --git a/assets/js/webmention-utils.mjs b/assets/js/webmention-utils.mjs index 45a4e42..376afd4 100644 --- a/assets/js/webmention-utils.mjs +++ b/assets/js/webmention-utils.mjs @@ -1,5 +1,5 @@ -export function renderMentions(mentions, className) { - const webMentionsSection = document.querySelector(className); +export function renderMentions(mentions, rootSelector) { + const webMentionsSection = document.querySelector(rootSelector); mentions = mentions.filter((m) => m["wm-private"] !== true); if (mentions.filter((m) => m.author.name !== "Ayo Ayco").length)