diff options
Diffstat (limited to 'bin/send-comments')
-rwxr-xr-x | bin/send-comments | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/send-comments b/bin/send-comments index b054ebd8f..b60c46e5d 100755 --- a/bin/send-comments +++ b/bin/send-comments @@ -56,12 +56,18 @@ while ( my $council = $councils->next ) { } ); - my $o = Open311->new( + my %open311_conf = ( endpoint => $council->endpoint, jurisdiction => $council->jurisdiction, api_key => $council->api_key, ); + if ( $council->send_extended_statuses ) { + $open311_conf{extended_statuses} = 1; + } + + my $o = Open311->new( %open311_conf ); + while ( my $comment = $comments->next ) { my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($comment->cobrand)->new(); |