user has read feature - turns post count badge red if there is a new post and grey if the user has seen this post already

This commit is contained in:
psychobunny
2013-05-09 07:27:55 +00:00
parent a4e8f9e706
commit f218e0f3a7
4 changed files with 45 additions and 12 deletions

View File

@@ -131,7 +131,7 @@ var express = require('express'),
case 'category' :
global.modules.topics.get(function(data) {
res.send(JSON.stringify(data));
}, req.params.id);
}, req.params.id, (req.user) ? req.user.uid : 0);
break;
case 'latest' :
global.modules.topics.get(function(data) {