From 8c1681da0c2b6b547b23a582fb5a91a6e449916d Mon Sep 17 00:00:00 2001 From: swag Date: Fri, 2 Jun 2023 14:53:33 -0400 Subject: [PATCH] Update links to hidden posts --- lib/PostText/Controller/Moderator.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PostText/Controller/Moderator.pm b/lib/PostText/Controller/Moderator.pm index 7db0c10..76ca4de 100644 --- a/lib/PostText/Controller/Moderator.pm +++ b/lib/PostText/Controller/Moderator.pm @@ -6,7 +6,7 @@ sub flagged($self) { my $flagged_posts = $self->moderator->flagged; my @post_links = map { $self->url_for( - 'single_' . $_->{'type'}, $_->{'type'} . '_id' => $_->{'id'} + 'hidden_' . $_->{'type'}, $_->{'type'} . '_id' => $_->{'id'} ) } @{$flagged_posts}; @@ -19,7 +19,7 @@ sub hidden($self) { my $hidden_posts = $self->moderator->hidden; my @post_links = map { $self->url_for( - 'single_' . $_->{'type'}, $_->{'type'} . '_id' => $_->{'id'} + 'hidden_' . $_->{'type'}, $_->{'type'} . '_id' => $_->{'id'} ) } @{$hidden_posts};