Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r16176: Support for serveral TheSchwartz roles

Committer: gariev
Support for serveral TheSchwartz roles
U   trunk/cgi-bin/talklib.pl
Modified: trunk/cgi-bin/talklib.pl
===================================================================
--- trunk/cgi-bin/talklib.pl	2010-01-29 10:43:51 UTC (rev 16175)
+++ trunk/cgi-bin/talklib.pl	2010-01-29 10:59:29 UTC (rev 16176)
@@ -2441,15 +2441,8 @@
     # fire events
     unless ($LJ::DISABLED{esn}) {
         my $cmtobj = LJ::Comment->new($journalu, jtalkid => $jtalkid);
-        my @jobs;
-
-        push @jobs, LJ::Event::JournalNewComment->new($cmtobj)->fire_job;
-        push @jobs, LJ::EventLogRecord::NewComment->new($cmtobj)->fire_job;
-
-        my $sclient = LJ::theschwartz();
-        if ($sclient && @jobs) {
-            my @handles = $sclient->insert_jobs(@jobs);
-        }
+        LJ::Event::JournalNewComment->new($cmtobj)->fire;
+        LJ::EventLogRecord::NewComment->new($cmtobj)->fire;
     }
 
     return $jtalkid;
@@ -3122,15 +3115,8 @@
 
     # fire events
     unless ($LJ::DISABLED{esn}) {
-        my @jobs;
-
-        push @jobs, LJ::Event::JournalNewComment->new($comment_obj)->fire_job;
-        push @jobs, LJ::EventLogRecord::NewComment->new($comment_obj)->fire_job;
-
-        my $sclient = LJ::theschwartz();
-        if ($sclient && @jobs) {
-            my @handles = $sclient->insert_jobs(@jobs);
-        }
+        LJ::Event::JournalNewComment->new($comment_obj)->fire;
+        LJ::EventLogRecord::NewComment->new($comment_obj)->fire;
     }
 
     LJ::run_hooks('edit_comment', $journalu->{userid}, $item->{itemid}, $comment->{talkid});

Tags: gariev, livejournal, pl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments