mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 22:59:46 +02:00
[InstagramBridge] Fixed item thumb on video entries (#1387)
This commit is contained in:
parent
c9e5f6c9dd
commit
3179c1e884
2 changed files with 19 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue