projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rss_converter_instagram.com.xsl: improve the comment about full names
[tweeper.git]
/
src
/
rss_converter_instagram.com.xsl
diff --git
a/src/rss_converter_instagram.com.xsl
b/src/rss_converter_instagram.com.xsl
index
e869d7d
..
1549512
100644
(file)
--- a/
src/rss_converter_instagram.com.xsl
+++ b/
src/rss_converter_instagram.com.xsl
@@
-34,8
+34,14
@@
<xsl:variable name="user-name" select="//ProfilePage/user/username"/>
<xsl:variable name="user-name" select="//ProfilePage/user/username"/>
- <!-- Some users do not specify the full name -->
+ <!--
+ NOTE: some users do not specify the full name.
+
+ Remember to handle this case when using it and fall-back to the plain
+ user name when appropriate.
+ -->
<xsl:variable name="full-name" select="//ProfilePage/user/full_name"/>
<xsl:variable name="full-name" select="//ProfilePage/user/full_name"/>
+
<xsl:variable name="screen-name">
<xsl:choose>
<xsl:when test="$full-name != ''">
<xsl:variable name="screen-name">
<xsl:choose>
<xsl:when test="$full-name != ''">
@@
-75,7
+81,7
@@
</guid>
<pubDate>
<xsl:variable name="timestamp" select="./date"/>
</guid>
<pubDate>
<xsl:variable name="timestamp" select="./date"/>
- <xsl:value-of select="php:functionString('Tweeper::epochToRssDate', $timestamp)"/>
+ <xsl:value-of select="php:functionString('Tweeper
\Tweeper
::epochToRssDate', $timestamp)"/>
</pubDate>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
</pubDate>
<description>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
@@
-89,7
+95,7
@@
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<xsl:if test="$generate-enclosure = 1">
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</description>
<xsl:if test="$generate-enclosure = 1">
- <xsl:copy-of select="php:functionString('Tweeper::generateEnclosure', $item-content-image)"/>
+ <xsl:copy-of select="php:functionString('Tweeper
\Tweeper
::generateEnclosure', $item-content-image)"/>
</xsl:if>
</item>
</xsl:template>
</xsl:if>
</item>
</xsl:template>