Skip to content

Commit e73f9df

Browse files
committed
Use argument to determine replies per page
1 parent d1ee382 commit e73f9df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Lio/Forum/Threads/ThreadRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getByTagsAndStatusPaginated(Collection $tags, $status, $perPage
5353

5454
public function getThreadRepliesPaginated(Thread $thread, $perPage = 20)
5555
{
56-
return $thread->replies()->paginate(20);
56+
return $thread->replies()->paginate($perPage);
5757
}
5858

5959
public function requireBySlug($slug)

0 commit comments

Comments
 (0)