aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Rss.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm')
-rwxr-xr-xperllib/FixMyStreet/App/Controller/Rss.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm
index 90ab7ad41..ed47f6f87 100755
--- a/perllib/FixMyStreet/App/Controller/Rss.pm
+++ b/perllib/FixMyStreet/App/Controller/Rss.pm
@@ -280,7 +280,7 @@ sub add_row : Private {
$item{pubDate} = $pubDate if $pubDate;
$item{category} = $row->{category} if $row->{category};
- if ($c->cobrand->allow_photo_display && $row->{photo}) {
+ if ($c->cobrand->allow_photo_display($row) && $row->{photo}) {
my $key = $alert_type->item_table eq 'comment' ? 'c/' : '';
$item{description} .= ent("\n<br><img src=\"". $base_url . "/photo/$key$row->{id}.jpeg\">");
}