mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
[MrssFormat] Remove media:title and media:content
Both items only make sense in combination with media:content. This subsequently eradicates $item->thumbnailUri.
This commit is contained in:
parent
1af6008d65
commit
f3eefab475
2 changed files with 0 additions and 5 deletions
|
@ -25,7 +25,6 @@ class MrssFormat extends FormatAbstract{
|
|||
$itemTitle = strip_tags(is_null($data->title) ? '' : $data->title);
|
||||
$itemUri = is_null($data->uri) ? '' : $data->uri;
|
||||
$itemAuthor = is_null($data->author) ? '' : $data->author;
|
||||
$itemThumbnailUri = is_null($data->thumbnailUri) ? '' : $data->thumbnailUri;
|
||||
$itemTimestamp = is_null($data->timestamp) ? '' : date(DATE_RFC2822, $data->timestamp);
|
||||
// We prevent content from closing the CDATA too early.
|
||||
$itemContent = is_null($data->content) ? '' : htmlspecialchars($this->sanitizeHtml(str_replace(']]>','',$data->content)));
|
||||
|
@ -39,8 +38,6 @@ class MrssFormat extends FormatAbstract{
|
|||
<pubDate>{$itemTimestamp}</pubDate>
|
||||
<description>{$itemContent}</description>
|
||||
<author>{$itemAuthor}</author>
|
||||
<media:title>{$itemTitle}</media:title>
|
||||
<media:thumbnail url="{$itemThumbnailUri}" />
|
||||
</item>
|
||||
|
||||
EOD;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue