aboutsummaryrefslogtreecommitdiffstats
path: root/include/feedutils.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-02-19 14:11:58 +0100
committerMario Vavti <mario@mariovavti.com>2018-02-19 14:11:58 +0100
commit43992dc463575655a5767fcb1a8dcb18a1d4ffdf (patch)
tree9cdc730f0ec821c7b7d5250c85e49bb6baae2da4 /include/feedutils.php
parentfac5d81790262c0583d42f442018157066c3bf3f (diff)
downloadvolse-hubzilla-43992dc463575655a5767fcb1a8dcb18a1d4ffdf.tar.gz
volse-hubzilla-43992dc463575655a5767fcb1a8dcb18a1d4ffdf.tar.bz2
volse-hubzilla-43992dc463575655a5767fcb1a8dcb18a1d4ffdf.zip
do not show summary if it is equal to body and some styling for the summary/article toggle links
Diffstat (limited to 'include/feedutils.php')
-rw-r--r--include/feedutils.php3
1 files changed, 3 insertions, 0 deletions
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);