Changeset 784

Show
Ignore:
Timestamp:
05/19/06 08:45:49
Author:
s_nobu
Message:

Support one_click_post mode in Widget::Delicious

Files:

Legend:

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

    r73 r784  
    2323    my($self, $entry) = @_; 
    2424    my $uri = URI->new('http://del.icio.us/' . $self->conf->{username}); 
    25     $uri->query_form( 
    26         v => 3, 
    27         url => $entry->permalink, 
    28         title => encode('utf-8', $entry->title), 
    29     ); 
     25    my %query; 
     26    $query{'url'}  = $entry->permalink; 
     27    $query{'description'} = encode('utf-8', $entry->title); 
     28    $query{'tags'} = $self->conf->{tags} if $self->conf->{tags}; 
     29    $query{'jump'} = 'doclose' if $self->conf->{one_click_post} == 1; 
     30    $uri->query_form(%query); 
    3031 
    3132    my $url = HTML::Entities::encode($uri->as_string);