Changeset 3742
- Timestamp:
- 12/28/07 23:36:51 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/plagger/lib/Plagger/Plugin/Filter/TwitterFeed.pm
r3432 r3742 17 17 18 18 return unless $args->{feed}->url =~ m!^http://twitter\.com/!; 19 $context->log(debug => "Found Twitter feed " . $args->{feed}->url); 19 20 21 # strip username in title 20 22 if ($args->{entry}->title =~ /^(.*)?:\ (.*)?$/) { 21 23 my $strip_title = $args->{entry}->title; … … 25 27 } 26 28 29 # strip username in body 27 30 if ($args->{entry}->body =~ /^(.*)?:\ (.*)?$/) { 28 31 my $strip_body = $args->{entry}->body; … … 31 34 $context->log(info => "Strip username in body: " . $args->{entry}->body); 32 35 } 36 37 # delete direct message 38 if ($args->{entry}->title =~ /^\@(.*)?$/ || $args->{entry}->body =~ /^\@(.*)?/) { 39 $context->log(info => "Strip direct message: " . $args->{entry}->link); 40 $args->{feed}->delete_entry($args->{entry}); 41 } 33 42 } 34 43
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)