diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 6e42593..749cb0b 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -7,7 +7,7 @@ use Mojo::Base -base, -signatures; has 'pg'; sub new($class, $pg, $pg_reference) { - bless {$pg => $pg_reference} + bless {$pg => $pg_reference}, $class } sub create_thread($self, $author, $title, $body, $hidden = 0, $flagged = 0) {