From 56994b3b5c732089548c7fba49286916550e569a Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 17 Oct 2024 08:47:44 +0200 Subject: [PATCH] [ZeitBridge] Remove content from original feed (#4260) The original feed contains a small version of the header image and the summary or a literal "None". The header image is already added, but the original content was kept. This removes the original content and adds the summary if it exists. --- bridges/ZeitBridge.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bridges/ZeitBridge.php b/bridges/ZeitBridge.php index ae8a1a66..d4d66a1c 100644 --- a/bridges/ZeitBridge.php +++ b/bridges/ZeitBridge.php @@ -117,6 +117,14 @@ class ZeitBridge extends FeedExpander }, $authors)); } + $item['content'] = ''; + + // summary + $summary = $article->find('.summary'); + if ($summary) { + $item['content'] .= implode('', $summary); + } + // header image $headerimg = $article->find('*[data-ct-row="headerimage"]', 0) ?? $article->find('.article-header', 0) ?? $article->find('header', 0); if ($headerimg) {