|
|
@ -176,7 +176,7 @@ class PostController extends SiteController {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
await resourceService.recordView(req, 'Post', res.locals.post._id);
|
|
|
|
await resourceService.recordView(req, 'Post', res.locals.post._id);
|
|
|
|
|
|
|
|
|
|
|
|
res.locals.countPerPage = 5;
|
|
|
|
res.locals.countPerPage = 20;
|
|
|
|
res.locals.pagination = this.getPaginationParameters(req, res.locals.countPerPage);
|
|
|
|
res.locals.pagination = this.getPaginationParameters(req, res.locals.countPerPage);
|
|
|
|
|
|
|
|
|
|
|
|
if (req.query.comment) {
|
|
|
|
if (req.query.comment) {
|
|
|
|