Skip to content

Commit d952143

Browse files
committed
Validators: clean up links with :443 port in it
1 parent 65e46e1 commit d952143

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lib/plugins/validators/sync/04_ssl_validator.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,11 @@ export default {
2424
if (sslProtocol && !hasSSL) {
2525
link.rel.push('ssl');
2626
}
27+
28+
console.log(12, link)
29+
if (/^https:\/\/[^\/\?]+:443\/?/.test(link.href)) {
30+
console.log(23, link)
31+
link.href = link.href.replace(/^(https:\/\/[^\/\?]+):443/, '$1');
32+
}
2733
}
2834
};

lib/plugins/validators/sync/01_ignorelist.js renamed to lib/plugins/validators/sync/05_ignorelist.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
export default {
22

3+
// Should go after 04_sll_validator that replaces ":443" with ''
4+
35
prepareLink: function(whitelistRecord, options, link, plugin) {
46

57
if (!link.error

plugins/domains/instagram.com/instagram.com.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default {
5959
// Remove below error when and if it's fixed. Validators will remove the link
6060
og_image.error = 'Unfortunatelly Instagram\'s OG image is cropped';
6161
} else if (!oembed.thumbnail_url) {
62-
og_image.message = "Unfortunatelly, Instagram removed full images on November 3, 2025";
62+
// og_image.message = "Unfortunatelly, Instagram removed full images on November 3, 2025"; // images seem to be OK as of Dec 12, 2025
6363
}
6464
links.push(og_image);
6565
}

0 commit comments

Comments
 (0)