1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-30 13:20:12 +02:00

[InstagramBridge] Fixed item thumb on video entries (#1387)

This commit is contained in:
Lorenzo Stanco
2020-02-26 22:13:40 +01:00
committed by GitHub
parent c9e5f6c9dd
commit 3179c1e884
2 changed files with 19 additions and 9 deletions

View File

@@ -89,6 +89,10 @@ class AtomFormat extends FormatAbstract{
. PHP_EOL;
}
$entryThumbnail = $item->thumbnail;
if (!empty($entryThumbnail))
$entryThumbnail = '<media:thumbnail url="' . $this->xml_encode($entryThumbnail) . '"/>';
$entryLinkAlternate = '';
if (!empty($entryUri)) {
$entryLinkAlternate = '<link rel="alternate" type="text/html" href="'
@@ -114,6 +118,7 @@ class AtomFormat extends FormatAbstract{
<content type="html">{$entryContent}</content>
{$entryEnclosures}
{$entryCategories}
{$entryThumbnail}
</entry>
EOD;