diff --git a/PostText.pl b/PostText.pl index a4c97a9..c23f721 100755 --- a/PostText.pl +++ b/PostText.pl @@ -97,7 +97,7 @@ any [qw{GET POST}], '/post', sub ($c) { group { under '/thread'; - get '/:thread_id', [message_id => qr/[0-9]+/], sub ($c) { + get '/:thread_id', [thread_id => qr/[0-9]+/], sub ($c) { my $thread_id = $c->param('thread_id'); my $thread = $c->thread->get_thread_by_id($thread_id); my $replies = $c->reply->get_replies_by_thread_id($thread_id); diff --git a/README.md b/README.md index af5846a..b4ab11f 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ Run the tests locally (against development environment) ## TODOs 1. Add hyperlink somewhere to single thread view (whoopsie) -1. Retrieve replies in the single thread view 1. Paging for replies in single thread view 1. Default 'threads per page' is broken if config file isn't correct (should pick up the default value wtf) +1. Why aren't the built-in error handling things working anymore?? 1. Pick a date format diff --git a/lib/PostText/Model/Reply.pm b/lib/PostText/Model/Reply.pm index f9fee91..0c79e08 100644 --- a/lib/PostText/Model/Reply.pm +++ b/lib/PostText/Model/Reply.pm @@ -26,8 +26,8 @@ sub get_replies_by_thread_id($self, $thread_id) { END_SQL } -sub exception($self, $exception) { - say $exception -} +#sub exception($self, $exception) { +# say $exception +#} 1; diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 80fd38d..51a871d 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -92,8 +92,8 @@ sub get_thread_by_id($self, $thread_id) { END_SQL } -sub exception($self, $exception) { - say $exception -} +#sub exception($self, $exception) { +# say $exception +#} 1;