Skip to content

Commit 35f4deb

Browse files
iparamonaunleush
authored andcommitted
Validators: clean up links with :443 port in it (#614)
* Validators: clean up links with `:443` port in it * cleanup
1 parent 0e0ef55 commit 35f4deb

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

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

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

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)