wip
This commit is contained in:
		
							parent
							
								
									41623f8590
								
							
						
					
					
						commit
						8fd78aebbf
					
				
					 2 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -77,7 +77,17 @@ module.exports = async (params, user, app) => {
 | 
			
		|||
			channel_id: {
 | 
			
		||||
				$in: watchingChannelIds
 | 
			
		||||
			}
 | 
			
		||||
		}]
 | 
			
		||||
		}],
 | 
			
		||||
		// mute
 | 
			
		||||
		user_id: {
 | 
			
		||||
			$nin: mutes
 | 
			
		||||
		},
 | 
			
		||||
		'_reply.user_id': {
 | 
			
		||||
			$nin: mutes
 | 
			
		||||
		},
 | 
			
		||||
		'_repost.user_id': {
 | 
			
		||||
			$nin: mutes
 | 
			
		||||
		},
 | 
			
		||||
	} as any;
 | 
			
		||||
 | 
			
		||||
	if (sinceId) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								src/api/models/mute.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/api/models/mute.ts
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
import db from '../../db/mongodb';
 | 
			
		||||
 | 
			
		||||
export default db.get('mute') as any; // fuck type definition
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue