From afe68068d46a90602d6f4fd9f13e196578884512 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 6 Jun 2018 15:36:39 +0200 Subject: [PATCH] src/rss_converter_twitter.com.xsl: only output channel image when it's available Hashtag pages do not have an image usable as a channel logo, and in cases like this the element would be empty, but this would make the feed invalid according to https://www.feedvalidator.org So, to produce feeds which validate, avoid outputting the whole element when there is no suitable image to use as a channel logo. --- src/rss_converter_twitter.com.xsl | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 53bbb84..d1514c5 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -181,6 +181,7 @@ + @@ -197,17 +198,19 @@ - - - <xsl:value-of select="$channel-title"/> - - - - - - - - + + + + <xsl:value-of select="$channel-title"/> + + + + + + + + + -- 2.1.4