From 9f43e384d216840b7cbf48d6b391a857e250f556 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Sat, 17 Aug 2019 14:40:06 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=A2=E3=83=BC=E3=83=88=E3=83=A6?= =?UTF-8?q?=E3=83=BC=E3=82=B6=E3=83=BC=E5=90=91=E3=81=91=E3=81=AENoteUnrea?= =?UTF-8?q?ds=E3=83=AC=E3=82=B3=E3=83=BC=E3=83=89=E3=81=AF=E4=BD=9C?= =?UTF-8?q?=E6=88=90=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=20(#5280)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/note/unread.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/note/unread.ts b/src/services/note/unread.ts index 203cff8d3..549aa971a 100644 --- a/src/services/note/unread.ts +++ b/src/services/note/unread.ts @@ -1,10 +1,13 @@ import { Note } from '../../models/entities/note'; import { publishMainStream } from '../stream'; import { User } from '../../models/entities/user'; -import { Mutings, NoteUnreads } from '../../models'; +import { Mutings, NoteUnreads, Users } from '../../models'; import { genId } from '../../misc/gen-id'; export default async function(user: User, note: Note, isSpecified = false) { + // ローカルユーザーのみ + if (!Users.isLocalUser(user)) return; + //#region ミュートしているなら無視 const mute = await Mutings.find({ muterId: user.id