[dw-free] Don't fire PubSubHubbub events if we're importing entries.
[commit: http://hg.dwscoalition.org/dw-free/rev/8c9665b68d32]
Don't fire PubSubHubbub events if we're importing entries.
Patch by
mark.
Files modified:
Don't fire PubSubHubbub events if we're importing entries.
Patch by
![[staff profile]](https://www.dreamwidth.org/img/silk/identity/user_staff.png)
Files modified:
- cgi-bin/ljprotocol.pl
-------------------------------------------------------------------------------- diff -r 624cbb39f2ca -r 8c9665b68d32 cgi-bin/ljprotocol.pl --- a/cgi-bin/ljprotocol.pl Thu Aug 27 17:59:12 2009 +0000 +++ b/cgi-bin/ljprotocol.pl Thu Aug 27 18:01:49 2009 +0000 @@ -1528,6 +1528,9 @@ sub postevent push @jobs, LJ::Event::JournalNewEntry->new($entry)->fire_job; push @jobs, LJ::Event::UserNewEntry->new($entry)->fire_job if LJ::is_enabled('esn-userevents') || $LJ::_T_FIRE_USERNEWENTRY; push @jobs, LJ::Event::OfficialPost->new($entry)->fire_job if $uowner->is_official; + + # PubSubHubbub Support + LJ::Feed::generate_hubbub_jobs( $uowner, \@jobs ); } push @jobs, LJ::EventLogRecord::NewEntry->new($entry)->fire_job; @@ -1535,9 +1538,6 @@ sub postevent if ( @LJ::SPHINX_SEARCHD ) { push @jobs, TheSchwartz::Job->new_from_array( 'DW::Worker::Sphinx::Copier', { userid => $uowner->id } ); } - - # PubSubHubbub Support - LJ::Feed::generate_hubbub_jobs( $uowner, \@jobs ); my $sclient = LJ::theschwartz(); if ($sclient && @jobs) { --------------------------------------------------------------------------------