mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 17:12:05 +02:00
fix: #7103
update counter when user navigates to /unread fix new topic alert on /unread moved unread code from footer to unread
This commit is contained in:
@@ -77,7 +77,7 @@ module.exports = function (Groups) {
|
||||
};
|
||||
|
||||
function inviteOrRequestMembership(groupName, uid, type, callback) {
|
||||
if (!parseInt(uid, 10)) {
|
||||
if (!(parseInt(uid, 10) > 0)) {
|
||||
return callback(new Error('[[error:not-logged-in]]'));
|
||||
}
|
||||
var hookName = type === 'invite' ? 'action:group.inviteMember' : 'action:group.requestMembership';
|
||||
|
||||
Reference in New Issue
Block a user