From 6e2aff201c8017b2076020cd12ec723cbdba6aae Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Tue, 3 Apr 2018 18:11:04 +0200 Subject: [PATCH] rss_converter_instagram.com.xsl: use the screen name in item titles The user name is not always defined, for example in case of locations, so use the screen name in item titles. --- src/rss_converter_instagram.com.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rss_converter_instagram.com.xsl b/src/rss_converter_instagram.com.xsl index 4045224..bd67951 100644 --- a/src/rss_converter_instagram.com.xsl +++ b/src/rss_converter_instagram.com.xsl @@ -67,7 +67,7 @@ <xsl:variable name="title-length" select="140"/> - <xsl:variable name="item-content-title" select="normalize-space(concat($user-name, ': ', $item-content-caption))"/> + <xsl:variable name="item-content-title" select="normalize-space(concat($screen-name, ': ', $item-content-caption))"/> <!-- ellipsize, inspired from http://stackoverflow.com/questions/13622338 --> <xsl:choose> <xsl:when test="string-length($item-content-title) > $title-length"> -- 2.1.4