summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a5e03b7)
The old way of using just the screen name made re-tweeted messages look
like they were coming from the re-twitting user instead of the original
author. This is wrong and causes confusion, fix it.
<xsl:variable name="screen-name" select="//div[@class='profile-card-inner']/@data-screen-name"/>
<xsl:template match="//div[@id='timeline']//ol[@id='stream-items-id']//li[@data-item-type='tweet']">
<xsl:variable name="screen-name" select="//div[@class='profile-card-inner']/@data-screen-name"/>
<xsl:template match="//div[@id='timeline']//ol[@id='stream-items-id']//li[@data-item-type='tweet']">
+ <xsl:variable name="user-name" select=".//span[@class='username js-action-profile-name']/b"/>
<xsl:variable name="tweet-text" select=".//p[@class='js-tweet-text tweet-text']"/>
<item>
<title>
<xsl:variable name="tweet-text" select=".//p[@class='js-tweet-text tweet-text']"/>
<item>
<title>
- <xsl:value-of select="concat($screen-name, ': ', $tweet-text)"/>
+ <xsl:value-of select="concat($user-name, ': ', $tweet-text)"/>
</title>
<link>
<xsl:value-of select="concat($twitterBaseURL, .//a[@class='details with-icn js-details']/@href)"/>
</title>
<link>
<xsl:value-of select="concat($twitterBaseURL, .//a[@class='details with-icn js-details']/@href)"/>
<xsl:value-of select="php:functionString('Tweeper::epoch_to_gmdate', .//small[@class='time']//span/@data-time)"/>
</pubDate>
<description>
<xsl:value-of select="php:functionString('Tweeper::epoch_to_gmdate', .//small[@class='time']//span/@data-time)"/>
</pubDate>
<description>
- <xsl:value-of select="concat($screen-name, ': ')"/>
+ <xsl:value-of select="concat($user-name, ': ')"/>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="$tweet-text/node()"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:copy-of select="$tweet-text/node()"/>
<xsl:text disable-output-escaping="yes">]]></xsl:text>