From 3a81cb62a106adf77d226f3ab9a6c8d4381cb39c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Fri, 10 Jun 2011 11:56:15 +0100 Subject: Tidy up a couple of FIXMEs. --- perllib/FixMyStreet/App/Controller/Rss.pm | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Rss.pm') diff --git a/perllib/FixMyStreet/App/Controller/Rss.pm b/perllib/FixMyStreet/App/Controller/Rss.pm index 4c048b56d..0edded1e3 100755 --- a/perllib/FixMyStreet/App/Controller/Rss.pm +++ b/perllib/FixMyStreet/App/Controller/Rss.pm @@ -30,17 +30,7 @@ sub updates : LocalRegex('^(\d+)$') { my ( $self, $c ) = @_; my $id = $c->req->captures->[0]; - my $problem = $c->cobrand->problems->find( { id => $id } ); - - # FIXME Put these 404/410 checks in central place - Report.pm does it too. - if ( !$problem || $problem->state eq 'unconfirmed' ) { - $c->detach( '/page_error_404_not_found', [ _('Unknown problem ID') ] ); - } elsif ( $problem->state eq 'hidden' ) { - $c->detach( - '/page_error_410_gone', - [ _('That report has been removed from FixMyStreet.') ] - ); - } + $c->forward( '/report/load_problem_or_display_error', [ $id ] ); $c->stash->{type} = 'new_updates'; $c->stash->{qs} = 'report/' . $id; -- cgit v1.2.3