Fix bug
This commit is contained in:
		@@ -11,13 +11,13 @@ export default async function(
 | 
			
		||||
	subscriber: Xev,
 | 
			
		||||
	user: IUser
 | 
			
		||||
) {
 | 
			
		||||
	const mute = await Mute.find({ muterId: user._id });
 | 
			
		||||
	const mutedUserIds = mute.map(m => m.muteeId.toString());
 | 
			
		||||
 | 
			
		||||
	// Subscribe stream
 | 
			
		||||
	subscriber.on('hybrid-timeline', onEvent);
 | 
			
		||||
	subscriber.on(`hybrid-timeline:${user._id}`, onEvent);
 | 
			
		||||
 | 
			
		||||
	const mute = await Mute.find({ muterId: user._id });
 | 
			
		||||
	const mutedUserIds = mute.map(m => m.muteeId.toString());
 | 
			
		||||
 | 
			
		||||
	async function onEvent(note: any) {
 | 
			
		||||
		//#region 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
 | 
			
		||||
		if (mutedUserIds.indexOf(note.userId) != -1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user