rss_converter_twitter.com.xsl: filter out promoted tweets
authorAntonio Ospite <ao2@ao2.it>
Thu, 22 Jun 2017 08:47:35 +0000 (10:47 +0200)
committerAntonio Ospite <ao2@ao2.it>
Thu, 22 Jun 2017 08:47:35 +0000 (10:47 +0200)
src/rss_converter_twitter.com.xsl

index fc250e5..e2c5125 100644 (file)
                         <xsl:value-of select="//a[contains(@class, 'profile-picture')]/@href"/>
                     </url>
                 </image>
-                <xsl:apply-templates select="//ol[@id='stream-items-id']/li[@data-item-id and @data-item-type='tweet']"/>
+                <xsl:apply-templates select="//ol[@id='stream-items-id']/li[@data-item-id and @data-item-type='tweet' and not(contains(@class, 'has-profile-promoted-tweet'))]"/>
             </channel>
         </rss>
     </xsl:template>