diff --git a/README.md b/README.md index bd2d3f8..6b14773 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ Run the tests locally (against development environment) ## TODOs -1. I think I should revist the Post and Remark routes... +1. Should replace all reference to 'name' to 'author', getting confused 1. Grow into full blown Mojo? 1. More granular tests 1. Document post_text.conf (whoopsie) diff --git a/lib/PostText.pm b/lib/PostText.pm index 067c967..60b3d22 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -94,6 +94,8 @@ sub startup($self) { $thread_body ); + $c->session(author => $thread_author); + return $c->redirect_to('list'); } } @@ -123,6 +125,8 @@ sub startup($self) { $remark_body ); + $c->session(author => $remark_name); + return $c->redirect_to( 'thread_page', {thread_id => $thread_id} diff --git a/templates/post.html.ep b/templates/post.html.ep index aef4b41..32be5c6 100644 --- a/templates/post.html.ep +++ b/templates/post.html.ep @@ -4,7 +4,11 @@