From 0c29cec64150714078b40e482789c10e2b50b071 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 6 Dec 2022 09:58:18 +0100 Subject: [PATCH] Don't append akismet message twice --- peertube-plugin-akismet/client/common-client-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peertube-plugin-akismet/client/common-client-plugin.js b/peertube-plugin-akismet/client/common-client-plugin.js index cb137a1..f817894 100644 --- a/peertube-plugin-akismet/client/common-client-plugin.js +++ b/peertube-plugin-akismet/client/common-client-plugin.js @@ -22,7 +22,7 @@ async function register ({ registerHook, peertubeHelpers }) { ipMessage.innerHTML = htmlWarning ipMessage.style = 'margin: 10px 0; font-size: 0.9em;' - if (document.querySelector(ipMessage.id)) return + if (document.getElementById(ipMessage.id)) return document.querySelector('my-video-comment-add .textarea-wrapper').append(ipMessage) }