Skip to content

Commit

Permalink
Added code to accept firehose entries on Story creation
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroom committed Aug 15, 2006
1 parent 3496871 commit ab5cf5d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Slash/DB/MySQL/MySQL.pm
Expand Up @@ -9241,6 +9241,13 @@ sub getUrlFromSid {

sub grantStorySubmissionKarma {
my($self, $story) = @_;
my $constants = getCurrentStatic();
if ($constants->{plugin}{FireHose}) {
if($story->{fhid}) {
my $firehose = getObject("Slash::FireHose");
$firehose->setFireHose($story->{fhid}, { accepted => "yes"});
}
}
return 0 unless $story->{subid};
my($submitter_uid) = $self->sqlSelect(
'uid', 'submissions',
Expand Down

0 comments on commit ab5cf5d

Please sign in to comment.