mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
feat: support itunes namespace in top channel feed (#3776)
Also preserves other properties.
This commit is contained in:
@@ -8,7 +8,7 @@ class HtmlFormat extends FormatAbstract
|
||||
{
|
||||
$queryString = $_SERVER['QUERY_STRING'];
|
||||
|
||||
$extraInfos = $this->getExtraInfos();
|
||||
$feedArray = $this->getFeed();
|
||||
$formatFactory = new FormatFactory();
|
||||
$buttons = [];
|
||||
$linkTags = [];
|
||||
@@ -29,9 +29,9 @@ class HtmlFormat extends FormatAbstract
|
||||
];
|
||||
}
|
||||
|
||||
if (Configuration::getConfig('admin', 'donations') && $extraInfos['donationUri'] !== '') {
|
||||
if (Configuration::getConfig('admin', 'donations') && $feedArray['donationUri']) {
|
||||
$buttons[] = [
|
||||
'href' => e($extraInfos['donationUri']),
|
||||
'href' => e($feedArray['donationUri']),
|
||||
'value' => 'Donate to maintainer',
|
||||
];
|
||||
}
|
||||
@@ -39,7 +39,7 @@ class HtmlFormat extends FormatAbstract
|
||||
$items = [];
|
||||
foreach ($this->getItems() as $item) {
|
||||
$items[] = [
|
||||
'url' => $item->getURI() ?: $extraInfos['uri'],
|
||||
'url' => $item->getURI() ?: $feedArray['uri'],
|
||||
'title' => $item->getTitle() ?? '(no title)',
|
||||
'timestamp' => $item->getTimestamp(),
|
||||
'author' => $item->getAuthor(),
|
||||
@@ -51,9 +51,9 @@ class HtmlFormat extends FormatAbstract
|
||||
|
||||
$html = render_template(__DIR__ . '/../templates/html-format.html.php', [
|
||||
'charset' => $this->getCharset(),
|
||||
'title' => $extraInfos['name'],
|
||||
'title' => $feedArray['name'],
|
||||
'linkTags' => $linkTags,
|
||||
'uri' => $extraInfos['uri'],
|
||||
'uri' => $feedArray['uri'],
|
||||
'buttons' => $buttons,
|
||||
'items' => $items,
|
||||
]);
|
||||
|
Reference in New Issue
Block a user