From 5dc8e85d02ba9753decfba64930720d07b683ac9 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 18 Aug 2020 09:55:58 +0200 Subject: [PATCH] Remove obsolete code --- server/proofVerification.js | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/server/proofVerification.js b/server/proofVerification.js index ffbd3d8..df3cd3b 100644 --- a/server/proofVerification.js +++ b/server/proofVerification.js @@ -126,33 +126,3 @@ const VerifyJsonProof = (data, checkPath, checkClaim, checkRelation) => { exports.Proxy = Proxy; exports.Twitter = Twitter; - -// include 'secrets.php'; -// -// $fingerprint = urlencode($_GET["fp"]); -// $tweetId = urlencode($_GET["id"]); -// -// $check = "\[Verifying my OpenPGP key: openpgp4fpr:$fingerprint\]"; -// -// $response = array(); -// $response["verified"] = false; -// $response["fingerprint"] = $fingerprint; -// $response["tweetId"] = $tweetId; -// $response["text"] = $data["data"]["text"]; -// -// if (!is_null($twitter_api_auth)) { -// $ch = curl_init(); -// curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', $twitter_api_auth)); -// curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); -// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); -// curl_setopt($ch, CURLOPT_URL, "https://api.twitter.com/labs/2/tweets/$tweetId?tweet.fields=author_id,created_at,id,source,text"); -// $result = curl_exec($ch); -// curl_close($ch); -// $data = json_decode($result, true); -// -// if (preg_match("/{$check}/i", $data["data"]["text"])) { -// $response["verified"] = true; -// } -// } -// -// echo json_encode($response);