diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-08-17 14:40:06 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-08-17 14:40:06 +0900 |
| commit | 6060c6d56e68b52ea17f37361a5e462fcf1018d0 (patch) | |
| tree | b5514a5182746cf3877057e12ed13cf312d3933f | |
| parent | Fix: ドライブアップロード直後に取得できるURLがoriginalじ... (diff) | |
| download | sharkey-6060c6d56e68b52ea17f37361a5e462fcf1018d0.tar.gz sharkey-6060c6d56e68b52ea17f37361a5e462fcf1018d0.tar.bz2 sharkey-6060c6d56e68b52ea17f37361a5e462fcf1018d0.zip | |
リモートユーザー向けのNoteUnreadsレコードは作成しないように (#5280)
| -rw-r--r-- | src/services/note/unread.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/note/unread.ts b/src/services/note/unread.ts index 203cff8d39..549aa971a7 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 |