in which I am glad to be a programmer type
Feb. 9th, 2009 10:17 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Huzzah! Now every post that contains "Automatically shipped by Loudtwitter" will be filtered out of my friendslist. It's not like I don't want to hear what you have to say; I just don't want to see a record of half of the conversations you had via Twitter with people I've never met, or hear that the office bathroom is out of toilet paper.
no subject
Date: 2009-02-09 03:29 pm (UTC)no subject
Date: 2009-02-09 03:52 pm (UTC)This snippet assumes that the post object is in a variable called 'e', and lives at the top of the function that prints a post.
# abort entire function if this is just a twitspam post
if (($e.text->contains("Automatically shipped by")) and ($e.text->contains ("LoudTwitter")) ) {
return;
}
no subject
Date: 2009-02-09 10:35 pm (UTC)no subject
Date: 2009-02-09 10:02 pm (UTC)<favorite_tag class="box">…</favorite_tag>
. I don't know if you're a coder at all or not, so if you'd like me to modify it for your layout, just ask. :)no subject
Date: 2009-02-09 10:06 pm (UTC)no subject
Date: 2009-02-09 11:23 pm (UTC)Eh. I can't blame you.