mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Refactoring
This commit is contained in:
parent
5fbf30e00d
commit
cfa21107ed
@ -195,10 +195,7 @@ export default define(meta, async (ps, user) => {
|
||||
const mute = await Mutings.find({
|
||||
muterId: recipientUser.id,
|
||||
});
|
||||
const mutedUserIds = mute.map(m => m.muteeId.toString());
|
||||
if (mutedUserIds.indexOf(user.id) != -1) {
|
||||
return;
|
||||
}
|
||||
if (mute.map(m => m.muteeId).includes(user.id)) return;
|
||||
//#endregion
|
||||
|
||||
publishMainStream(recipientUser.id, 'unreadMessagingMessage', messageObj);
|
||||
|
Loading…
Reference in New Issue
Block a user