aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-04-20 15:32:00 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-04-20 15:32:00 +0100
commit193697bde57ef2cfd0a46bb5a85fa98727378297 (patch)
treee8dd78b7202b78e3483ac65924e054a23127a594 /perllib/FixMyStreet/App/Controller/Open311.pm
parentf35b7eba0db02d16fa0aad5a78ee479165217e20 (diff)
parentb7099e8e513fe64ec183b1403515f46a7cc25f19 (diff)
Merge remote-tracking branch 'origin/1302-support-pngs'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Open311.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm
index f35dc64a5..4f1727b1a 100644
--- a/perllib/FixMyStreet/App/Controller/Open311.pm
+++ b/perllib/FixMyStreet/App/Controller/Open311.pm
@@ -284,7 +284,7 @@ sub output_requests : Private {
my $display_photos = $c->cobrand->allow_photo_display($problem);
if ($display_photos && $problem->photo) {
my $url = $c->cobrand->base_url();
- my $imgurl = $url . "/photo/$id.full.jpeg";
+ my $imgurl = $url . $problem->photos->[0]->{url_full};
$request->{'media_url'} = [ $imgurl ];
}
push(@problemlist, $request);