Changeset 1878

Show
Ignore:
Timestamp:
11/28/06 17:44:57
Author:
miyagawa
Message:

CustomFeed?::Debug: reuse feed so it works with SmartFeed?. Set undef to aggregator to avoid dclone error

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger.pm

    r1870 r1878  
    294294        if (my $sub = $feed->aggregator) { 
    295295            $sub->($self, { feed => $feed }); 
     296            $feed->aggregator(undef); # for cloning 
    296297        } else { 
    297298            my $ok = $self->run_hook_once('customfeed.handle', { feed => $feed }); 
  • trunk/plagger/lib/Plagger/Plugin/CustomFeed/Debug.pm

    r1828 r1878  
    2424    my ($self, $context, $args) = @_; 
    2525 
    26     my $feed = Plagger::Feed->new
     26    my $feed = $args->{feed}
    2727    $feed->type('debug'); 
    2828    for (keys %{$self->conf}) {