aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Rss.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-04 14:42:46 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-04 14:42:46 +0100
commit77ae49afb00e1dc1bd528f179ac0b32512feae3d (patch)
treedc82b836344d9ef8cd2c462ee54aa1dd21f27ab2 /perllib/FixMyStreet/App/Controller/Rss.pm
parentd6c6c05f4627c2b85f2ec867ff3b6c85f297e8cc (diff)
parent8544bafc365406ac9a403e80fe07cc361a7d1d5b (diff)
Merge branch 'fix-cobrand-restriction-warning'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Rss.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm
index b58b79937..b817fe326 100755
--- a/perllib/FixMyStreet/App/Controller/Rss.pm
+++ b/perllib/FixMyStreet/App/Controller/Rss.pm
@@ -264,11 +264,7 @@ sub add_row : Private {
(my $link = $alert_type->item_link) =~ s/{{(.*?)}}/$row->{$1}/g;
(my $desc = _($alert_type->item_description)) =~ s/{{(.*?)}}/$row->{$1}/g;
- my $hashref_restriction = $c->cobrand->body_restriction;
- my $base_url = $c->cobrand->base_url;
- if ( $hashref_restriction && $row->{bodies_str} && $row->{bodies_str} ne $hashref_restriction ) {
- $base_url = $c->config->{BASE_URL};
- }
+ my $base_url = $c->cobrand->base_url_for_report($row);
my $url = $base_url . $link;
my %item = (