From ab5cf5d71df5121fad9ee3d21d496ba5c98decbb Mon Sep 17 00:00:00 2001 From: Tim Vroom Date: Tue, 15 Aug 2006 17:39:08 +0000 Subject: [PATCH] Added code to accept firehose entries on Story creation --- Slash/DB/MySQL/MySQL.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Slash/DB/MySQL/MySQL.pm b/Slash/DB/MySQL/MySQL.pm index 60e2f91dc..6587645f9 100644 --- a/Slash/DB/MySQL/MySQL.pm +++ b/Slash/DB/MySQL/MySQL.pm @@ -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',