Shorten moar
This commit is contained in:
parent
29a11f9886
commit
3fda11c417
|
@ -81,7 +81,7 @@ sub last_page_for($self, $thread_id) {
|
||||||
|
|
||||||
*get_last_page_by_thread_id = \&last_page_for;
|
*get_last_page_by_thread_id = \&last_page_for;
|
||||||
|
|
||||||
sub last_remark_for($self, $thread_id) {
|
sub last_for($self, $thread_id) {
|
||||||
my $date_format = $self->{'date_format'};
|
my $date_format = $self->{'date_format'};
|
||||||
|
|
||||||
$self->pg->db->query(<<~'END_SQL', $date_format, $thread_id)->hash;
|
$self->pg->db->query(<<~'END_SQL', $date_format, $thread_id)->hash;
|
||||||
|
@ -96,6 +96,6 @@ sub last_remark_for($self, $thread_id) {
|
||||||
END_SQL
|
END_SQL
|
||||||
}
|
}
|
||||||
|
|
||||||
*last_remark = \&last_remark_for;
|
*last_remark = \&last_for;
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user