Update create.ts
This commit is contained in:
parent
ef5a963b32
commit
09af75a92d
@ -98,7 +98,7 @@ module.exports = (params, user) => new Promise(async (res, rej) => {
|
|||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
const freshMessage = await Message.findOne({ _id: message._id }, { is_read: true });
|
const freshMessage = await Message.findOne({ _id: message._id }, { is_read: true });
|
||||||
if (!freshMessage.is_read) {
|
if (!freshMessage.is_read) {
|
||||||
//#region ただしミュートしているユーザーからの通知なら無視
|
//#region ただしミュートされているなら発行しない
|
||||||
const mute = await Mute.find({
|
const mute = await Mute.find({
|
||||||
muter_id: recipient._id,
|
muter_id: recipient._id,
|
||||||
deleted_at: { $exists: false }
|
deleted_at: { $exists: false }
|
||||||
|
Loading…
Reference in New Issue
Block a user