mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-04 16:49:35 +00:00
fix(pinterest): set enclosure so it emits mrss media:content prop (#3980)
This commit is contained in:
parent
257799be8e
commit
598ee5b51e
@ -39,6 +39,9 @@ class PinterestBridge extends FeedExpander
|
|||||||
$pattern = '/https\:\/\/i\.pinimg\.com\/[a-zA-Z0-9]*x\//';
|
$pattern = '/https\:\/\/i\.pinimg\.com\/[a-zA-Z0-9]*x\//';
|
||||||
foreach ($this->items as $item) {
|
foreach ($this->items as $item) {
|
||||||
$item['content'] = preg_replace($pattern, 'https://i.pinimg.com/originals/', $item['content']);
|
$item['content'] = preg_replace($pattern, 'https://i.pinimg.com/originals/', $item['content']);
|
||||||
|
$item['enclosures'] = [
|
||||||
|
$item['uri'],
|
||||||
|
];
|
||||||
$newitems[] = $item;
|
$newitems[] = $item;
|
||||||
}
|
}
|
||||||
$this->items = $newitems;
|
$this->items = $newitems;
|
||||||
|
Loading…
Reference in New Issue
Block a user