mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	Notification delivery (#6072)
* ability for users to choose how they receive notifications add type field to more notifications, the type field is used to determine what to do based on user setting(none,notification,email,notificationemail) * change var name to types * cleanup * add event types for privileged users * remove unused language keys * fix uids check * changed if statements * upgrade script to preserver old settings
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							e68e5122e2
						
					
				
				
					commit
					dd176dd5f2
				
			@@ -696,6 +696,7 @@ Flags.notify = function (flagObj, uid, callback) {
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			notifications.create({
 | 
			
		||||
				type: 'new-user-flag',
 | 
			
		||||
				bodyShort: '[[notifications:user_flagged_user, ' + flagObj.reporter.username + ', ' + flagObj.target.username + ']]',
 | 
			
		||||
				bodyLong: flagObj.description,
 | 
			
		||||
				path: '/uid/' + flagObj.targetId,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user