refactor(wot): single loop only

This commit is contained in:
enes 2024-11-19 13:08:27 +01:00
parent 990f91c0a6
commit 4b6926b0b9

View File

@ -98,9 +98,7 @@ export const findFollowsAndMuteUsers = async (
follows.add(f) follows.add(f)
}) })
} }
})
events.forEach((event) => {
if (event.kind === NDKKind.MuteList) { if (event.kind === NDKKind.MuteList) {
filterValidPTags(event.tags).forEach((f) => { filterValidPTags(event.tags).forEach((f) => {
muted.add(f) muted.add(f)