From 7dc34492074e7a87258151850cbb0d84f7616fa2 Mon Sep 17 00:00:00 2001 From: Dag Date: Wed, 22 Jun 2022 18:33:48 +0200 Subject: [PATCH] [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 tag --- bridges/KilledbyGoogleBridge.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bridges/KilledbyGoogleBridge.php b/bridges/KilledbyGoogleBridge.php index 217f6095..dc9d33f7 100644 --- a/bridges/KilledbyGoogleBridge.php +++ b/bridges/KilledbyGoogleBridge.php @@ -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'] = <<{$tombstone['description']}

{$tombstone['link']}

+

{$tombstone['description']}

{$tombstone['link']}

EOD; - $item['enclosures'][] = self::URI . '/assets/tombstone.svg'; + $item['enclosures'][] = 'https://static.killedbygoogle.com/com/tombstone.svg'; $this->items[] = $item; }