Skip to content

Commit

Permalink
twitter: a feature flag to allow player=canonical
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jun 21, 2024
1 parent 885e6d8 commit d806462
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/links/twitter-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default {
player.autoplay = whitelistRecord.twitter['player-autoplay'];
}

if (!whitelistRecord.isAllowed('twitter.player', 'iframely')) {
player.rel.push(CONFIG.R.iframely); // Allows player = canonical
}

return player;
}
}
Expand Down

0 comments on commit d806462

Please sign in to comment.