diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Photo.pm | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Photo.pm b/perllib/FixMyStreet/App/Controller/Photo.pm index e8025e0a1..f4866cc26 100644 --- a/perllib/FixMyStreet/App/Controller/Photo.pm +++ b/perllib/FixMyStreet/App/Controller/Photo.pm @@ -61,12 +61,6 @@ sub index :LocalRegex('^(c/)?(\d+)(?:\.(\d+))?(?:\.(full|tn|fp))?\.jpeg$') { photo => { '!=', undef }, } ); } else { - # GoogleBot-Image is doing this for some reason? - if ( $id =~ m{ ^(\d+) \D .* $ }x ) { - return $c->res->redirect( $c->uri_with( { id => $1 } ), 301 ); - } - - $c->detach( 'no_photo' ) if $id =~ /\D/; ($item) = $c->cobrand->problems->search( { id => $id, state => [ FixMyStreet::DB::Result::Problem->visible_states() ], |