mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	fix: post queue notifs
fix moderators not showing up immediately when adding them
This commit is contained in:
		| @@ -103,7 +103,7 @@ define('admin/manage/admins-mods', ['translator', 'benchpress', 'autocomplete'], | ||||
| 					return; | ||||
| 				} | ||||
|  | ||||
| 				app.parseAndTranslate('admin/manage/admins-mods', 'globalMods', { globalMods: [ui.item.user] }, function (html) { | ||||
| 				app.parseAndTranslate('admin/manage/admins-mods', 'globalMods.members', { globalMods: { members: [ui.item.user] } }, function (html) { | ||||
| 					$('.moderator-area[data-cid="' + cid + '"]').prepend(html); | ||||
| 					$('.no-moderator-warning[data-cid="' + cid + '"]').addClass('hidden'); | ||||
| 				}); | ||||
|   | ||||
| @@ -67,7 +67,7 @@ module.exports = function (Posts) { | ||||
| 				], next); | ||||
| 			}, | ||||
| 			function (results, next) { | ||||
| 				next(null, _.union(results)); | ||||
| 				next(null, _.uniq(_.flattenDeep(results))); | ||||
| 			}, | ||||
| 		], callback); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user