mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-17 22:10:23 +01:00
Compare commits
2 Commits
normalize-
...
v1.16.2-be
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dc6fc65322 | ||
|
|
27b481765b |
@@ -2,7 +2,7 @@
|
|||||||
"name": "nodebb",
|
"name": "nodebb",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"description": "NodeBB Forum",
|
"description": "NodeBB Forum",
|
||||||
"version": "1.16.2-beta.0",
|
"version": "1.16.2-beta.1",
|
||||||
"homepage": "http://www.nodebb.org",
|
"homepage": "http://www.nodebb.org",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -51,11 +51,12 @@ notificationsController.get = async function (req, res, next) {
|
|||||||
if (!selectedFilter) {
|
if (!selectedFilter) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
let nids = await user.notifications.getAll(req.uid, selectedFilter.filter);
|
|
||||||
const pageCount = Math.max(1, Math.ceil(nids.length / itemsPerPage));
|
|
||||||
nids = nids.slice(start, stop + 1);
|
|
||||||
|
|
||||||
const notifications = await user.notifications.getNotifications(nids, req.uid);
|
const nids = await user.notifications.getAll(req.uid, selectedFilter.filter);
|
||||||
|
let notifications = await user.notifications.getNotifications(nids, req.uid);
|
||||||
|
|
||||||
|
const pageCount = Math.max(1, Math.ceil(notifications.length / itemsPerPage));
|
||||||
|
notifications = notifications.slice(start, stop + 1);
|
||||||
|
|
||||||
res.render('notifications', {
|
res.render('notifications', {
|
||||||
notifications: notifications,
|
notifications: notifications,
|
||||||
|
|||||||
Reference in New Issue
Block a user