Some clean-up and TODO

This commit is contained in:
swagg boi 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
1. Actions for creating moderators and resetting passwords
1. Tests for Moderator
1. CSS
## Crazy future ideas

View file

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

View file

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

View file

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