mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	resolving notifs issue, I hope
This commit is contained in:
		| @@ -1009,7 +1009,10 @@ var utils = require('./../public/src/utils.js'), | |||||||
| 							next(null, notif_data); | 							next(null, notif_data); | ||||||
| 						}); | 						}); | ||||||
| 					}, function(err, notifs) { | 					}, function(err, notifs) { | ||||||
| 						notifs = notifs.sort(function(a, b) { | 						notifs = notifs.filter(function(notif) { | ||||||
|  | 							if (notif !== null) return true; | ||||||
|  | 							else return false; | ||||||
|  | 						}).sort(function(a, b) { | ||||||
| 							return parseInt(b.datetime, 10) - parseInt(a.datetime, 10); | 							return parseInt(b.datetime, 10) - parseInt(a.datetime, 10); | ||||||
| 						}).map(function(notif) { | 						}).map(function(notif) { | ||||||
| 							notif.datetimeISO = new Date(parseInt(notif.datetime, 10)).toISOString(); | 							notif.datetimeISO = new Date(parseInt(notif.datetime, 10)).toISOString(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user