mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-14 12:15:44 +02:00
perf: 各ストリーミング接続ごとにポーリングしないように
This commit is contained in:
@@ -6,6 +6,7 @@ import { getUser } from '../../common/getters';
|
||||
import { genId } from '../../../../misc/gen-id';
|
||||
import { Mutings, NoteWatchings } from '../../../../models';
|
||||
import { Muting } from '../../../../models/entities/muting';
|
||||
import { publishUserEvent } from '../../../../services/stream';
|
||||
|
||||
export const meta = {
|
||||
desc: {
|
||||
@@ -82,6 +83,8 @@ export default define(meta, async (ps, user) => {
|
||||
muteeId: mutee.id,
|
||||
} as Muting);
|
||||
|
||||
publishUserEvent(user.id, 'mute', mutee);
|
||||
|
||||
NoteWatchings.delete({
|
||||
userId: muter.id,
|
||||
noteUserId: mutee.id
|
||||
|
||||
Reference in New Issue
Block a user