rss_converter_instagram.com.xsl: use the screen name in item titles
authorAntonio Ospite <ao2@ao2.it>
Tue, 3 Apr 2018 16:11:04 +0000 (18:11 +0200)
committerAntonio Ospite <ao2@ao2.it>
Tue, 3 Apr 2018 16:11:04 +0000 (18:11 +0200)
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

index 4045224..bd67951 100644 (file)
@@ -67,7 +67,7 @@
         <item>
             <title>
                 <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">