Changeset 16821 for lang/perl/plagger/lib/Plagger/Plugin/Publish
- Timestamp:
- 07/30/08 07:40:33 (4 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/plagger/lib/Plagger/Plugin/Publish/Wassr.pm
r1182 r16821 32 32 33 33 my $body = $self->templatize('wassr.tt', $args); 34 unless ($self->conf->{templatize}) { 35 $body = $args->{entry}->body_text; 36 } 37 34 38 # TODO: FIX when Summary configurable. 35 39 if ( length($body) > 159 ) { … … 37 41 } 38 42 $context->log(info => "Updating Wassr status to '$body'"); 39 $self->{wassr}->update( {status => encode_utf8($body)} ) or $context->error("Can't update wassr status"); 40 43 if ($self->conf->{channel}) { 44 $self->{wassr}->channel_update( {name_en => $self->conf->{channel}, body => encode_utf8($body)} ) or $context->error("Can't update wassr status"); 45 } else { 46 $self->{wassr}->update( {status => encode_utf8($body)} ) or $context->error("Can't update wassr status"); 47 } 41 48 my $sleeping_time = $self->conf->{interval} || 15; 42 49 $context->log(info => "sleep $sleeping_time."); … … 57 64 username: wassr-id 58 65 password: wassr-password 66 channel: name_en 67 templatize: 1 59 68 60 69 =head1 DESCRIPTION
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)