1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-07-24 10:21:24 +02: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:
Dag
2022-06-22 18:33:48 +02:00
committed by GitHub
parent bde00447f1
commit 7dc3449207

View File

@@ -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;
}