Twitter countermeasures

This commit is contained in:
Sam Ruby 2007-12-23 10:25:04 -05:00
parent e25fb76ff2
commit 97fc281a71
2 changed files with 21 additions and 2 deletions

6
filters/notweets.py Normal file
View File

@ -0,0 +1,6 @@
#remove all tweets
import sys
data = sys.stdin.read()
if data.find('<id>tag:twitter.com,') < 0:
sys.stdout.write(data)

View File

@ -108,7 +108,13 @@
<xsl:text> </xsl:text>
<!-- name -->
<a href="{atom:link[@rel='alternate']/@href}">
<a>
<xsl:if test="atom:link[@rel='alternate']/@href">
<xsl:attribute name="href">
<xsl:value-of select="atom:link[@rel='alternate']/@href"/>
</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="planet:message">
<xsl:attribute name="class">
@ -189,7 +195,14 @@
<xsl:if test="atom:source/atom:icon">
<img src="{atom:source/atom:icon}" class="icon"/>
</xsl:if>
<a href="{atom:source/atom:link[@rel='alternate']/@href}">
<a>
<xsl:if test="atom:source/atom:link[@rel='alternate']/@href">
<xsl:attribute name="href">
<xsl:value-of
select="atom:source/atom:link[@rel='alternate']/@href"/>
</xsl:attribute>
</xsl:if>
<xsl:attribute name="title">
<xsl:value-of select="atom:source/atom:title"/>
</xsl:attribute>