From 17a801d6d2a9a742c50ada861a1baf04a60a3c95 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 6 Nov 2018 12:56:02 -0700 Subject: [PATCH] fix: removed url parsing --- plugins/talk-plugin-toxic-comments/server/perspective.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/talk-plugin-toxic-comments/server/perspective.js b/plugins/talk-plugin-toxic-comments/server/perspective.js index b2e913d1d..db6d0c8de 100644 --- a/plugins/talk-plugin-toxic-comments/server/perspective.js +++ b/plugins/talk-plugin-toxic-comments/server/perspective.js @@ -1,4 +1,3 @@ -const { URL } = require('url'); const fetch = require('node-fetch'); const { API_ENDPOINT, @@ -14,7 +13,7 @@ const { ROOT_URL } = require('config'); // Use the ROOT_URL to grab the domain to construct a communityID for the // feedback. -const communityId = `Coral:${new URL(ROOT_URL).domain}`; +const communityId = `Coral:${ROOT_URL}`; async function send(method, body) { // Perform the fetch.