mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 23:45:13 +00:00
リモートユーザー向けのNoteUnreadsレコードは作成しないように (#5280)
This commit is contained in:
parent
6cdbb27169
commit
6060c6d56e
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