Skip to content

Commit 9d64c99

Browse files
committed
domains: review Instagram for Oct 1st 2025, when oembed author and thumbnail will be revoked
1 parent 4f8e512 commit 9d64c99

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

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

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default {
9090
});
9191
}
9292

93-
if (ipOG.video) {
93+
if (ipOG.video && ipOG.video.width && ipOG.video.height) {
9494
links.push({
9595
href: ipOG.video.url,
9696
accept: CONFIG.T.text_html,
@@ -132,9 +132,9 @@ export default {
132132
type: CONFIG.T.text_html,
133133
rel: [CONFIG.R.app, CONFIG.R.ssl, CONFIG.R.inline],
134134
// sizing is from Instagram placeholder to avoid double height changes
135-
'max-width': 660,
136-
'aspect-ratio': 200/63,
137-
'padding-bottom': 200,
135+
'max-width': 660,
136+
'aspect-ratio': 100 / (2 *(19 + 12.5)), // was: oembed.thumbnail_width / oembed.thumbnail_height, but sizes for placeholder are hardcoded anyway, no need to link them to the image sizes
137+
'padding-bottom': 284,
138138
options: {
139139
showcaption: {
140140
label: 'Show author\'s text caption',
@@ -143,12 +143,6 @@ export default {
143143
}
144144
};
145145

146-
if (oembed.thumbnail_width && oembed.thumbnail_height) {
147-
// sizes for placeholder are hardcoded anyway, no need to link them to the image sizes
148-
app['aspect-ratio'] = 100 / (2 *(19 + 12.5)); // was: oembed.thumbnail_width / oembed.thumbnail_height;
149-
app['padding-bottom'] = 284;// was: 206;
150-
}
151-
152146
links.push(app);
153147
}
154148

@@ -185,7 +179,7 @@ export default {
185179
"https://www.instagram.com/reel/CtHaSoDLrWJ/",
186180
"https://www.instagram.com/nssmagazine/reel/CrVt-Wvs74O/",
187181
{
188-
skipMixins: ["oembed-title", "fb-error"],
182+
skipMixins: ["oembed-title", "fb-error", "oembed-author"],
189183
skipMethods: ['getData']
190184
}
191185
]

0 commit comments

Comments
 (0)