aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perllib/FixMyStreet/App/Controller/Photo.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Photo.pm b/perllib/FixMyStreet/App/Controller/Photo.pm
index 3dc1275f0..9b828f894 100644
--- a/perllib/FixMyStreet/App/Controller/Photo.pm
+++ b/perllib/FixMyStreet/App/Controller/Photo.pm
@@ -35,8 +35,7 @@ sub index :Path :Args(0) {
my $photo;
if ( $comment ) {
- # FIXME implement comment photos
- return;
+ $photo = $c->model('DB::Comment')->find( {id => $comment, state => 'confirmed' } );
} else {
$photo = $c->model('DB::Problem')->find( {id => $id, state => 'confirmed' } );
}