Permalink
Browse files

bug fix

  • Loading branch information...
1 parent 64ce380 commit 48b1994ef970bfbb56d12f4d78eb2e7d8ec6b0db @wb213 committed Mar 7, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 tag/tweet.php
View
@@ -89,13 +89,13 @@ function list_tweet_item_html() {
$tweet = $content['tweets'][$content['iter']];
- // filter handling
+ // filter handling, not filter user self tweet
$filter = $settings->filter;
- preg_match_all("/$filter/", $tweet, $match);
- if (! empty($match)) {
- $content['iter']++;
+ preg_match_all("/$filter/", $tweet->text, $match);
+ if (! empty($match[0]) and $tweet->user->screen_name != $access_token['screen_name']) {
+ echo "<div class='filter'> This tweet has been filtered. </div>";
+ return;
}
- return;
// retweet handling
$is_retweet = false;

0 comments on commit 48b1994

Please sign in to comment.