Fix: フォローしたユーザが、自分のフォローしていないチャンネルにノートを投稿した時、そのノートがHTLで見えてしまう (#12186)
* #12181 の問題に対処 「ユーザー・チャンネルともにフォローあり」のときの絞り込みに不備があり、フォローしているユーザの投稿であればチャンネルのフォロー関係なく通過するようになってしまっていた * fix CHANGELOG.md --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
This commit is contained in:
		@@ -183,7 +183,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
 | 
			
		||||
			const followingChannelIds = followingChannels.map(x => x.followeeId);
 | 
			
		||||
			query.andWhere(new Brackets(qb => {
 | 
			
		||||
				qb
 | 
			
		||||
					.where('note.userId IN (:...meOrFolloweeIds)', { meOrFolloweeIds: meOrFolloweeIds })
 | 
			
		||||
					.where(new Brackets(qb2 => {
 | 
			
		||||
						qb2
 | 
			
		||||
							.where('note.userId IN (:...meOrFolloweeIds)', { meOrFolloweeIds: meOrFolloweeIds })
 | 
			
		||||
							.andWhere('note.channelId IS NULL');
 | 
			
		||||
					}))
 | 
			
		||||
					.orWhere('note.channelId IN (:...followingChannelIds)', { followingChannelIds });
 | 
			
		||||
			}));
 | 
			
		||||
		} else if (followees.length > 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user