aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-01-06 13:04:50 +0000
committerMatthew Somerville <matthew@mysociety.org>2016-01-06 13:04:52 +0000
commitcfcdf83008e296a889e0eab1842e211ee5e09d36 (patch)
tree87439922752d00a466e4afe339238793306eecba /perllib
parentbeb328eac14323135998d4a1dcb4721b4dde5904 (diff)
Remove unnecessary code, as ID is always a number.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Photo.pm6
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() ],