From: Antonio Ospite Date: Wed, 6 Jun 2018 13:36:39 +0000 (+0200) Subject: src/rss_converter_twitter.com.xsl: only output channel image when it's available X-Git-Tag: v1.3.0~1 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/afe68068d46a90602d6f4fd9f13e196578884512?ds=inline;hp=--cc 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. --- afe68068d46a90602d6f4fd9f13e196578884512 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"/> + + + + + + + + +