Fix bug
This commit is contained in:
		
							parent
							
								
									d02afbee96
								
							
						
					
					
						commit
						6ea168485a
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -150,8 +150,11 @@ export default async (user: IUser, data: {
 | 
				
			||||||
				const follower = following._follower;
 | 
									const follower = following._follower;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				if (isLocalUser(follower)) {
 | 
									if (isLocalUser(follower)) {
 | 
				
			||||||
					// この投稿が返信かつstalkフォローでないならスキップ
 | 
										// ストーキングしていない場合
 | 
				
			||||||
					if (note.replyId && !following.stalk) return;
 | 
										if (!following.stalk) {
 | 
				
			||||||
 | 
											// この投稿が返信ならスキップ
 | 
				
			||||||
 | 
											if (note.replyId && !note._reply.userId.equals(following.followerId) && !note._reply.userId.equals(note.userId)) return;
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
					// Publish event to followers stream
 | 
										// Publish event to followers stream
 | 
				
			||||||
					stream(following.followerId, 'note', noteObj);
 | 
										stream(following.followerId, 'note', noteObj);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue