Show
Ignore:
Timestamp:
03/18/08 18:22:58 (9 months ago)
Author:
mattn
Message:

lang/perl/plagger/lib/Plagger/Plugin/Publish/NiftyClip.pm:
nifty clipの変更に追従

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/plagger/lib/Plagger/Plugin/Publish/NiftyClip.pm

    r559 r8078  
    3232 
    3333    my @tags = @{$args->{entry}->tags}; 
     34    my $tag_string = @tags ? join(' ', @tags) : ''; 
    3435 
    3536    my $summary; 
     
    4142    if ($res && $res->is_success) { 
    4243        eval { 
    43             for (my $num = 0; $num < @tags; $num++) { 
    44                 if ($num == 0) { 
    45                     $self->{mech}->form_name('savingForm')->find_input( 
    46                         'tagname')->value($tags[0]); 
    47                 } else { 
    48                     $self->{mech}->form_name('savingForm')->push_input( 
    49                         'text', { 
    50                             name  => 'tagname', 
    51                             value => $tags[$num], 
    52                         }); 
    53                 } 
    54             } 
    5544            $self->{mech}->submit_form( 
    5645                form_name => 'savingForm', 
     
    5948                    url         => encode('utf-8', $args->{entry}->link), 
    6049                    comment     => $summary, 
     50                    suggesttags => $tag_string, 
    6151                    public_flag => ($self->conf->{default_public} ? 'on' : 'off'), 
    6252                }