mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
first pass at a custom title function (not ready for prod)
This commit is contained in:
@@ -1061,6 +1061,9 @@ var utils = require('./../public/src/utils.js'),
|
||||
callback(notifications);
|
||||
});
|
||||
},
|
||||
getUnreadCount: function(uid, callback) {
|
||||
RDB.zcount('uid:' + uid + ':notifications:unread', 0, 10, callback);
|
||||
},
|
||||
hasFlag: function(uid, callback) {
|
||||
RDB.get('uid:1:notifications:flag', function(err, flag) {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user