This commit is contained in:
syuilo
2023-10-03 11:03:23 +09:00
parent b66df850e5
commit 58eec94250
2 changed files with 23 additions and 5 deletions

View File

@@ -840,7 +840,7 @@ export class NoteCreateService implements OnApplicationShutdown {
select: ['followerId', 'withReplies'],
});
let userLists = await this.userListJoiningsRepository.find({
const userLists = await this.userListJoiningsRepository.find({
where: {
userId: user.id,
},
@@ -869,10 +869,11 @@ export class NoteCreateService implements OnApplicationShutdown {
}
}
if (note.visibility === 'followers') {
// TODO: 重そうだから何とかしたい Set 使う?
userLists = userLists.filter(x => followings.some(f => f.followerId === x.userListId));
}
// TODO
//if (note.visibility === 'followers') {
// // TODO: 重そうだから何とかしたい Set 使う?
// userLists = userLists.filter(x => followings.some(f => f.followerId === x.userListUserId));
//}
for (const userList of userLists) {
// 自分自身以外への返信