Don't append akismet message twice

This commit is contained in:
Chocobozzz
2022-12-06 09:58:18 +01:00
parent 9ed56041e9
commit 0c29cec641

View File

@ -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)
}