Skip to content

Commit

Permalink
Minor bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiemccarthy committed Jan 30, 2008
1 parent 35084eb commit 9e24b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tagboxes/FHEditorPop/FHEditorPop.pm
Expand Up @@ -218,6 +218,7 @@ sub run {
}

# If this is spam, its score goes way down.
my $firehose_db = getObject('Slash::FireHose');
if ($fhitem->{is_spam} eq 'yes' || $firehose_db->itemHasSpamURL($fhitem)) {
my $max = defined($constants->{firehose_spam_score})
? $constants->{firehose_spam_score}
Expand All @@ -226,7 +227,6 @@ sub run {
}

# Set the corresponding firehose row to have this popularity.
my $firehose_db = getObject('Slash::FireHose');
warn "Slash::Tagbox::FHEditorPop->run bad data, fhid='$fhid' db='$firehose_db'" if !$fhid || !$firehose_db;
if ($options->{return_only}) {
return $popularity;
Expand Down

0 comments on commit 9e24b63

Please sign in to comment.