From 43992dc463575655a5767fcb1a8dcb18a1d4ffdf Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Mon, 19 Feb 2018 14:11:58 +0100 Subject: do not show summary if it is equal to body and some styling for the summary/article toggle links --- include/feedutils.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/feedutils.php') diff --git a/include/feedutils.php b/include/feedutils.php index c4e9790de..369193fce 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -436,6 +436,9 @@ function get_atom_elements($feed, $item) { $summary = unxmlify($item->get_description(true)); + if($summary === $res['body']) + $summary = ''; + if(($summary) && ((strpos($summary,'<') !== false) || (strpos($summary,'>') !== false))) { $summary = purify_html($summary); $summary = html2bbcode($summary); -- cgit v1.2.3