diff --git a/assets/scripts.js b/assets/scripts.js index 9d8ce44..cd22804 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -361,7 +361,7 @@ async function verifyProof(url, fingerprint) { throw new Error('Response failed: ' + response.status); } json = await response.json(); - reVerify = new RegExp(`openpgp4fpr:${fingerprint}`); + reVerify = new RegExp(`openpgp4fpr:${fingerprint}`, 'i'); json.Answer.forEach((item, i) => { if (reVerify.test(item.data)) { output.isVerified = true; @@ -413,7 +413,7 @@ async function verifyProof(url, fingerprint) { throw new Error('Response failed: ' + response.status); } json = await response.json(); - reVerify = new RegExp(`openpgp4fpr:${fingerprint}`); + reVerify = new RegExp(`openpgp4fpr:${fingerprint}`, 'i'); if (reVerify.test(json.about)) { output.isVerified = true; } @@ -464,7 +464,7 @@ async function verifyProof(url, fingerprint) { throw new Error('Response failed: ' + response.status); } json = await response.json(); - reVerify = new RegExp(`[Verifying my OpenPGP key: openpgp4fpr:${fingerprint}]`); + reVerify = new RegExp(`[Verifying my OpenPGP key: openpgp4fpr:${fingerprint}]`, 'i'); if (reVerify.test(json.files["openpgp.md"].content)) { output.isVerified = true; } @@ -518,7 +518,7 @@ async function verifyProof(url, fingerprint) { // Potentially Mastodon match = url.match(/https:\/\/(.*)\/@(.*)/); json.attachment.forEach((item, i) => { - if (item.value === fingerprint) { + if (item.value.toUpperCase() === fingerprint.toUpperCase()) { output.type = "mastodon"; output.display = `@${match[2]}@${[match[1]]}`; output.proofUrlFetch = json.url; diff --git a/views/guides/reddit.content.php b/views/guides/reddit.content.php index f723b6f..8541153 100644 --- a/views/guides/reddit.content.php +++ b/views/guides/reddit.content.php @@ -2,7 +2,7 @@
Log in to www.reddit.com and compose a new tweet with the following text (make sure to replace FINGERPRINT):
+Log in to www.reddit.com and create a new post with the following text (make sure to replace FINGERPRINT):
This is an OpenPGP proof that connects my OpenPGP key to this Reddit account.
For details check out https://keyoxide.org/guides/openpgp-proofs
[Verifying my OpenPGP key: openpgp4fpr:FINGERPRINT]