mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	
							parent
							
								
									7436e0da18
								
							
						
					
					
						commit
						0fc36d11d7
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -237,7 +237,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
 | 
			
		|||
		if (followingChannels.length > 0) {
 | 
			
		||||
			const followingChannelIds = followingChannels.map(x => x.followeeId);
 | 
			
		||||
 | 
			
		||||
			query.andWhere('note.channelId IN (:...followingChannelIds) OR note.channelId IS NULL', { followingChannelIds });
 | 
			
		||||
			query.andWhere(new Brackets(qb => {
 | 
			
		||||
				qb.where('note.channelId IN (:...followingChannelIds)', { followingChannelIds });
 | 
			
		||||
				qb.andWhere('note.channelId IS NULL');
 | 
			
		||||
			}));
 | 
			
		||||
		} else {
 | 
			
		||||
			query.andWhere('note.channelId IS NULL');
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue