diff --git a/bridges/InstagramBridge.php b/bridges/InstagramBridge.php index 4abec001403..37b2de84ed1 100644 --- a/bridges/InstagramBridge.php +++ b/bridges/InstagramBridge.php @@ -88,7 +88,7 @@ public function collectData(){ $textContent = basename($media->display_url); } - $item['title'] = trim($textContent); + $item['title'] = ($media->is_video ? '▶ ' : '') . trim($textContent); $titleLinePos = strpos(wordwrap($item['title'], 120), "\n"); if ($titleLinePos != false) { $item['title'] = substr($item['title'], 0, $titleLinePos) . '...'; @@ -99,8 +99,9 @@ public function collectData(){ $item['content'] = $data[0]; $item['enclosures'] = $data[1]; } else { - $item['content'] = '' . $item['title'] . ''; - $item['content'] .= '

' . nl2br(htmlentities($textContent)); + $item['content'] = ''; + $item['content'] .= '' . $item['title'] . ''; + $item['content'] .= '

' . nl2br(htmlentities($textContent)); $item['enclosures'] = array($media->display_url); }