Changeset 130
- Timestamp:
- 10/04/05 19:04:09 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
DuplicatedTBPingLookup/trunk/DuplicatedTBPingLookup.pl
- Property svn:keywords set to Id Author Date Rev
r129 r130 8 8 # Copyright (c) 2005 Yujiro Araki 9 9 # 10 # Ported to MT 3.2 JunkFilter by Hirotaka Ogawa (Oct 3, 2005) 10 # Ported to MT 3.2 JunkFilter by Hirotaka Ogawa 11 # $Id$ 11 12 # 12 13 package MT::Plugin::DuplicatedTBPingLookup; … … 20 21 my $plugin = MT::Plugin::DuplicatedTBPingLookup->new({ 21 22 name => 'Duplicated TBPing Lookup', 22 description => " Mark duplicated trackback pings as'junk'.",23 description => "Lookup duplicated trackback ping from the same source, and mark it as a 'junk'.", 23 24 version => $VERSION, 24 25 config_template => \&template, … … 51 52 while (my $ping = $iter->()) { 52 53 if ($ping->source_url eq $url) { 53 my $weight = 54 $plugin->get_config_value('dtl_score_weight', 'blog:' . $blog_id) || 55 $plugin->get_config_value('dtl_score_weight') || 56 1; 54 my $weight = $plugin->get_config_value('dtl_score_weight', 'blog:' . $blog_id) 55 || $plugin->get_config_value('dtl_score_weight') || 1; 57 56 return (-1 * $weight, 58 "Duplicated trackback ping from the same source url: $url");57 "Duplicated trackback ping from the same source: $url"); 59 58 } 60 59 }
