| 43 | | title => encode('utf-8', $args->{entry}->title), |
| 44 | | description => $summary || '', |
| 45 | | tags => $tag_string, |
| 46 | | url => encode('utf-8', $args->{entry}->link), |
| 47 | | mode => ($self->conf->{default_public} ? '0' : '2'), |
| 48 | | }); |
| | 43 | title => encode('utf-8', $args->{entry}->title), |
| | 44 | description => $summary || '', |
| | 45 | tags => $tag_string, |
| | 46 | url => encode('utf-8', $args->{entry}->link), |
| | 47 | mode => ($self->conf->{default_public} ? '0' : '2'), |
| | 48 | }); |
| 51 | | $uri->query_form( |
| 52 | | cmd => 'bm_saveBookmark', |
| 53 | | json => $body, |
| 54 | | v => 11, |
| 55 | | ); |
| 56 | | my $res = eval { $self->{mech}->get($uri->as_string) }; |
| 57 | | if (!$res || !$res->is_success) { |
| 58 | | $context->log(info => "can't submit: " . $args->{entry}->link); |
| 59 | | } else { |
| 60 | | $context->log(info => "Post entry success."); |
| 61 | | } |
| | 51 | $uri->query_form( |
| | 52 | cmd => 'bm_saveBookmark', |
| | 53 | json => $body, |
| | 54 | v => 11, |
| | 55 | ); |
| | 56 | my $res = eval { $self->{mech}->get($uri->as_string) }; |
| | 57 | if (!$res || !$res->is_success) { |
| | 58 | $context->log(info => "can't submit: " . $args->{entry}->link); |
| | 59 | } else { |
| | 60 | $context->log(info => "Post entry success."); |
| | 61 | } |