diff --git a/lib/PostText/Controller/Moderator.pm b/lib/PostText/Controller/Moderator.pm index 6c16616..952779e 100644 --- a/lib/PostText/Controller/Moderator.pm +++ b/lib/PostText/Controller/Moderator.pm @@ -4,14 +4,16 @@ use Mojo::Base 'Mojolicious::Controller', -signatures; sub flagged($self) { my $flagged_posts = $self->moderator->flagged; - my $post_links = [map { - if ($_->{'type'} eq 'thread') { - $self->url_for(single_thread => thread_id => $_->{'id'}) - } - else { - $self->url_for(single_remark => remark_id => $_->{'id'}) - } - } @{$flagged_posts}]; + my $post_links = [ + map { + if ($_->{'type'} eq 'thread') { + $self->url_for(single_thread => thread_id => $_->{'id'}) + } + else { + $self->url_for(single_remark => remark_id => $_->{'id'}) + } + } @{$flagged_posts} + ]; $self->stash(post_links => $post_links);