From d9521430ecc149be34f3fcd997128d01dc7253ef Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Mon, 15 Dec 2025 11:26:41 -0500 Subject: [PATCH 1/2] Validators: clean up links with `:443` port in it --- lib/plugins/validators/sync/04_ssl_validator.js | 6 ++++++ .../validators/sync/{01_ignorelist.js => 05_ignorelist.js} | 2 ++ plugins/domains/instagram.com/instagram.com.js | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) rename lib/plugins/validators/sync/{01_ignorelist.js => 05_ignorelist.js} (86%) diff --git a/lib/plugins/validators/sync/04_ssl_validator.js b/lib/plugins/validators/sync/04_ssl_validator.js index 49d46d51a..19c17e754 100644 --- a/lib/plugins/validators/sync/04_ssl_validator.js +++ b/lib/plugins/validators/sync/04_ssl_validator.js @@ -24,5 +24,11 @@ export default { if (sslProtocol && !hasSSL) { link.rel.push('ssl'); } + + console.log(12, link) + if (/^https:\/\/[^\/\?]+:443\/?/.test(link.href)) { + console.log(23, link) + link.href = link.href.replace(/^(https:\/\/[^\/\?]+):443/, '$1'); + } } }; \ No newline at end of file diff --git a/lib/plugins/validators/sync/01_ignorelist.js b/lib/plugins/validators/sync/05_ignorelist.js similarity index 86% rename from lib/plugins/validators/sync/01_ignorelist.js rename to lib/plugins/validators/sync/05_ignorelist.js index 30b504e92..0a87f468c 100644 --- a/lib/plugins/validators/sync/01_ignorelist.js +++ b/lib/plugins/validators/sync/05_ignorelist.js @@ -1,5 +1,7 @@ export default { + // Should go after 04_sll_validator that replaces ":443" with '' + prepareLink: function(whitelistRecord, options, link, plugin) { if (!link.error diff --git a/plugins/domains/instagram.com/instagram.com.js b/plugins/domains/instagram.com/instagram.com.js index feb7f3708..2b48310f1 100644 --- a/plugins/domains/instagram.com/instagram.com.js +++ b/plugins/domains/instagram.com/instagram.com.js @@ -59,7 +59,7 @@ export default { // Remove below error when and if it's fixed. Validators will remove the link og_image.error = 'Unfortunatelly Instagram\'s OG image is cropped'; } else if (!oembed.thumbnail_url) { - og_image.message = "Unfortunatelly, Instagram removed full images on November 3, 2025"; + // og_image.message = "Unfortunatelly, Instagram removed full images on November 3, 2025"; // images seem to be OK as of Dec 12, 2025 } links.push(og_image); } From 444e9e6da67925c36227e58fe994e146f94b8c9e Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Mon, 15 Dec 2025 11:45:05 -0500 Subject: [PATCH 2/2] cleanup --- lib/plugins/validators/sync/04_ssl_validator.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/plugins/validators/sync/04_ssl_validator.js b/lib/plugins/validators/sync/04_ssl_validator.js index 19c17e754..f4ea43e18 100644 --- a/lib/plugins/validators/sync/04_ssl_validator.js +++ b/lib/plugins/validators/sync/04_ssl_validator.js @@ -25,9 +25,7 @@ export default { link.rel.push('ssl'); } - console.log(12, link) if (/^https:\/\/[^\/\?]+:443\/?/.test(link.href)) { - console.log(23, link) link.href = link.href.replace(/^(https:\/\/[^\/\?]+):443/, '$1'); } }