mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
complete fixes for #4144
This commit is contained in:
@@ -148,7 +148,7 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
|
||||
$(window).trigger('action:notification.updateCount', payload);
|
||||
|
||||
if (payload.updateFavicon) {
|
||||
Tinycon.setBubble(count);
|
||||
Tinycon.setBubble(count > 99 ? '99+' : count);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
2
public/vendor/tinycon/tinycon.js
vendored
2
public/vendor/tinycon/tinycon.js
vendored
@@ -20,7 +20,7 @@
|
||||
var defaults = {
|
||||
width: 7,
|
||||
height: 9,
|
||||
font: 10 * r + 'px arial',
|
||||
font: 9 * r + 'px arial',
|
||||
colour: '#ffffff',
|
||||
background: '#F03D25',
|
||||
fallback: true,
|
||||
|
||||
@@ -15,7 +15,7 @@ var utils = require('../../public/src/utils');
|
||||
module.exports = function(Topics) {
|
||||
|
||||
Topics.getTotalUnread = function(uid, callback) {
|
||||
Topics.getUnreadTids(0, uid, 0, 20, function(err, tids) {
|
||||
Topics.getUnreadTids(0, uid, 0, 99, function(err, tids) {
|
||||
callback(err, tids ? tids.length : 0);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -208,7 +208,7 @@ var async = require('async'),
|
||||
if (!parseInt(uid, 10)) {
|
||||
return callback(null, 0);
|
||||
}
|
||||
db.getSortedSetRevRange('uid:' + uid + ':notifications:unread', 0, 20, function(err, nids) {
|
||||
db.getSortedSetRevRange('uid:' + uid + ':notifications:unread', 0, 99, function(err, nids) {
|
||||
callback(err, Array.isArray(nids) ? nids.length : 0);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user