|
|
@ -150,7 +150,7 @@ class HomeController extends SiteController { |
|
|
|
res.locals.pageTitle = `${res.locals.userProfile.displayName || res.locals.userProfile.username} | ${this.dtp.config.site.name}`; |
|
|
|
res.locals.pageDescription = res.locals.userProfile.bio || this.dtp.config.site.description; |
|
|
|
|
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 20); |
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 100); |
|
|
|
res.locals.links = await linkService.getForUser(res.locals.userProfile, res.locals.pagination); |
|
|
|
|
|
|
|
await userService.recordProfileView(res.locals.userProfile, req); |
|
|
@ -165,7 +165,7 @@ class HomeController extends SiteController { |
|
|
|
async getHome (req, res, next) { |
|
|
|
const { link: linkService } = this.dtp.services; |
|
|
|
try { |
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 20); |
|
|
|
res.locals.pagination = this.getPaginationParameters(req, 100); |
|
|
|
if (req.user) { |
|
|
|
res.locals.links = await linkService.getForUser(req.user, res.locals.pagination); |
|
|
|
res.render('index-logged-in'); |
|
|
|