diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index a4473822..d41f6967 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -111,10 +111,11 @@ class InstagramBridge extends BridgeAbstract { $content = ''. $caption . ''; foreach($mediaInfo->edge_sidecar_to_children->edges as $media) { - - $content .= ''. $caption . ''; - $enclosures[] = $media->node->display_url; - + $display_url = $media->node->display_url; + if(!in_array($display_url, $enclosures)) { // add only if not added yet + $content .= ''. $caption . ''; + $enclosures[] = $display_url; + } } return [$content, $enclosures];