diff --git a/js/customElements/newComment.js b/js/customElements/newComment.js
index 1523128ddbd648cf1b4ce06e00d644dbc36e592e..817628d0a74230c85ece2ba57ba73d0d16b1d661 100644
--- a/js/customElements/newComment.js
+++ b/js/customElements/newComment.js
@@ -8,7 +8,15 @@ class newComment extends HTMLElement {
     }
 
     async setupForm() {
-        let sitekey = await (await fetch("/API/config.php?name=sitekey")).text();
+        var graphql = JSON.stringify({
+            query: "query {\r\n  sitekey\r\n}"
+          })
+          var requestOptions = {
+            method: 'POST',
+            body: graphql,
+          };
+
+        let sitekey = (await (await fetch("/API/graphql.php", requestOptions)).json()).data.sitekey;
 
         let script = document.createElement('script');
         script.src = "https://hCaptcha.com/1/api.js";