mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
リモートユーザー向けのNoteUnreadsレコードは作成しないように (#5280)
This commit is contained in:
parent
774fa19fea
commit
9f43e384d2
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue