[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;