Skip to content

Commit

Permalink
fix(pinterest): set enclosure so it emits mrss media:content prop (RS…
Browse files Browse the repository at this point in the history
  • Loading branch information
dvikan authored Feb 14, 2024
1 parent 257799b commit 598ee5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bridges/PinterestBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ private function fixLowRes()
$pattern = '/https\:\/\/i\.pinimg\.com\/[a-zA-Z0-9]*x\//';
foreach ($this->items as $item) {
$item['content'] = preg_replace($pattern, 'https://i.pinimg.com/originals/', $item['content']);
$item['enclosures'] = [
$item['uri'],
];
$newitems[] = $item;
}
$this->items = $newitems;
Expand Down

0 comments on commit 598ee5b

Please sign in to comment.