Some clean-up and TODO

This commit is contained in:
swag 2022-11-20 21:37:40 -05:00
parent 99bc7f79d4
commit 9089b78db7
4 changed files with 4 additions and 4 deletions

View File

@ -33,6 +33,7 @@ Run the tests locally (against development environment):
## TODOs ## TODOs
1. Actions for creating moderators and resetting passwords 1. Actions for creating moderators and resetting passwords
1. Tests for Moderator
1. CSS 1. CSS
## Crazy future ideas ## Crazy future ideas

View File

@ -2,8 +2,7 @@ package PostText::Model::Moderator;
use Mojo::Base -base, -signatures; use Mojo::Base -base, -signatures;
has 'pg'; has [qw{pg authenticator}];
has 'authenticator';
sub check($self, $email, $password) { sub check($self, $email, $password) {
my $moderator = my $moderator =

View File

@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
has 'pg'; has 'pg';
has per_page => sub { 5 }; has per_page => 5;
sub by_page_for($self, $thread_id, $this_page = 1) { sub by_page_for($self, $thread_id, $this_page = 1) {
my $date_format = $self->{'date_format'}; my $date_format = $self->{'date_format'};

View File

@ -4,7 +4,7 @@ use Mojo::Base -base, -signatures;
has 'pg'; has 'pg';
has per_page => sub { 5 }; has per_page => 5;
sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) { sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) {
my @data = ($author, $title, $body, $hidden, $flagged); my @data = ($author, $title, $body, $hidden, $flagged);