aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-11-29 18:46:10 +0000
committerStruan Donald <struan@exo.org.uk>2011-11-29 18:46:10 +0000
commit766d957ecfb95cb867b15282299c8c831126665d (patch)
treeb09b8dc8e82c049daab871b3f35c3f602c76a5dc
parent52f9f9e4e801ee25037569ad9d7950d322580f68 (diff)
use format_postcode in rss feeds as well
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Rss.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm
index 3a0fa0c04..abb32bc7c 100755
--- a/perllib/FixMyStreet/App/Controller/Rss.pm
+++ b/perllib/FixMyStreet/App/Controller/Rss.pm
@@ -252,9 +252,7 @@ sub add_row : Private {
my $url = $c->uri_for( $link );
if ( $row->{postcode} ) {
- my $pc = $row->{postcode};
- $pc = mySociety::PostcodeUtil::canonicalise_postcode($pc)
- if mySociety::PostcodeUtil::is_valid_postcode($pc);
+ my $pc = $c->cobrand->format_postcode( $row->{postcode} );
$title .= ", $pc";
}