Changeset 344

Show
Ignore:
Timestamp:
03/06/06 16:37:51
Author:
miyagawa
Message:

move the filter.feed hook to handle_feed so that ::Xango can use the XML rewriting

Files:

Legend:

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

    r343 r344  
    3737    $context->log(debug => $response->status . ": $url"); 
    3838 
    39     my $args = { content => $response->content }; 
    40     Plagger->context->run_hook('aggregator.filter.feed', $args); 
    41  
    42     $self->handle_feed($url, \$args->{content}); 
     39    $self->handle_feed($url, \$response->content); 
    4340} 
    4441 
     
    4643    my($self, $url, $xml_ref) = @_; 
    4744 
     45    my $args = { content => $$xml_ref }; 
     46    Plagger->context->run_hook('aggregator.filter.feed', $args); 
     47 
    4848    my $context = Plagger->context; 
    49     my $remote = eval { XML::Feed->parse($xml_ref) }; 
     49    my $remote = eval { XML::Feed->parse(\$args->{content}) }; 
    5050 
    5151    unless ($remote) {