[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -41,13 +41,14 @@ class KilledbyGoogleBridge extends BridgeAbstract {
$item['title'] = $tombstone['name'] . ' (' . $yearOpened . ' - ' . $yearClosed . ')'; $item['title'] = $tombstone['name'] . ' (' . $yearOpened . ' - ' . $yearClosed . ')';
$item['uid'] = $tombstone['slug']; $item['uid'] = $tombstone['slug'];
$item['uri'] = $tombstone['link'];
$item['timestamp'] = strtotime($tombstone['dateClose']); $item['timestamp'] = strtotime($tombstone['dateClose']);
$item['content'] = <<<EOD $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; EOD;
$item['enclosures'][] = self::URI . '/assets/tombstone.svg'; $item['enclosures'][] = 'https://static.killedbygoogle.com/com/tombstone.svg';
$this->items[] = $item; $this->items[] = $item;
} }