mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 23:29:56 +03:00
[KilledByGoogle] fix: broken enclosure url (#2852)
* [KilledByGoogle] fix: broken enclosure url The previous enclosure url was HTTP 404. Also add link to items. * fix: close unclosed <a> tag
This commit is contained in:
parent
bde00447f1
commit
7dc3449207
1 changed files with 3 additions and 2 deletions
|
@ -41,13 +41,14 @@ class KilledbyGoogleBridge extends BridgeAbstract {
|
|||
|
||||
$item['title'] = $tombstone['name'] . ' (' . $yearOpened . ' - ' . $yearClosed . ')';
|
||||
$item['uid'] = $tombstone['slug'];
|
||||
$item['uri'] = $tombstone['link'];
|
||||
$item['timestamp'] = strtotime($tombstone['dateClose']);
|
||||
|
||||
$item['content'] = <<<EOD
|
||||
<p>{$tombstone['description']}</p><p><a href="{$tombstone['link']}">{$tombstone['link']}</p>
|
||||
<p>{$tombstone['description']}</p><p><a href="{$tombstone['link']}">{$tombstone['link']}</a></p>
|
||||
EOD;
|
||||
|
||||
$item['enclosures'][] = self::URI . '/assets/tombstone.svg';
|
||||
$item['enclosures'][] = 'https://static.killedbygoogle.com/com/tombstone.svg';
|
||||
|
||||
$this->items[] = $item;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue