From 83812c773df73f3b73701e0653f42d32979a3b35 Mon Sep 17 00:00:00 2001
From: Antonio Ospite <ao2@ao2.it>
Date: Tue, 5 May 2015 09:28:23 +0200
Subject: [PATCH] rss_converter_twitter.com.xsl: improve matching the permalink

Extract the permalink using the @data-permalink-path attribute, this
works for withheld tweets too preventing them from having all the same
guid.
---
 rss_converter_twitter.com.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rss_converter_twitter.com.xsl b/rss_converter_twitter.com.xsl
index 9efc769..77b6666 100644
--- a/rss_converter_twitter.com.xsl
+++ b/rss_converter_twitter.com.xsl
@@ -41,7 +41,7 @@
     <xsl:template match="//*[@data-item-type='tweet' and @role='listitem']">
         <xsl:variable name="user-name" select=".//div[contains(@class, 'js-stream-tweet')]/@data-screen-name"/>
         <xsl:variable name="item-content" select=".//p[contains(@class, 'js-tweet-text')]"/>
-        <xsl:variable name="item-permalink" select="concat($BaseURL, .//a[contains(@class, 'js-permalink')]/@href)"/>
+        <xsl:variable name="item-permalink" select="concat($BaseURL, .//div[@data-permalink-path]/@data-permalink-path)"/>
         <item>
             <title>
                 <xsl:value-of select="concat($user-name, ': ', $item-content)"/>
-- 
2.1.4