chore: format
This commit is contained in:
parent
57df63c308
commit
996df9588a
1 changed files with 23 additions and 22 deletions
|
@ -386,28 +386,29 @@ export default async (
|
||||||
|
|
||||||
// Word mute
|
// Word mute
|
||||||
if (!scyllaClient) {
|
if (!scyllaClient) {
|
||||||
mutedWordsCache
|
mutedWordsCache
|
||||||
.fetch(null, () =>
|
.fetch(null, () =>
|
||||||
UserProfiles.find({
|
UserProfiles.find({
|
||||||
where: {
|
where: {
|
||||||
enableWordMute: true,
|
enableWordMute: true,
|
||||||
},
|
},
|
||||||
select: ["userId", "mutedWords"],
|
select: ["userId", "mutedWords"],
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.then((us) => {
|
.then((us) => {
|
||||||
for (const u of us) {
|
for (const u of us) {
|
||||||
getWordHardMute(data, u.userId, u.mutedWords).then((shouldMute) => {
|
getWordHardMute(data, u.userId, u.mutedWords).then((shouldMute) => {
|
||||||
if (shouldMute) {
|
if (shouldMute) {
|
||||||
MutedNotes.insert({
|
MutedNotes.insert({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
userId: u.userId,
|
userId: u.userId,
|
||||||
noteId: note.id,
|
noteId: note.id,
|
||||||
reason: "word",
|
reason: "word",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}});
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Antenna
|
// Antenna
|
||||||
|
|
Loading…
Reference in a new issue