Skip to content

Commit 6f9eed1

Browse files
committed
domains: do not raise 404 on Instagram post /embed urls
1 parent 8da17f2 commit 6f9eed1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/domains/instagram.com/instagram-post-allow-meta.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ export default {
44

55
provides: 'ipOG',
66

7-
getData: function(__allowInstagramMeta, meta, cb) {
7+
getData: function(__allowInstagramMeta, url, meta, cb) {
88
if (!meta.og && !meta.twitter && !meta.ld
99
&& !meta.title && !meta.description
10-
&& meta['html-title'] === 'Instagram') {
10+
&& meta['html-title'] === 'Instagram'
11+
&& !/\/embed/.test(url)) { // post and reel /embed as in https://www.instagram.com/p/HbBy-ExIyF/embed
1112
return cb({responseStatusCode: 404})
1213

1314
} else if (

0 commit comments

Comments
 (0)