From d9f0e158a35eec183da77e84a3b038fab645bf62 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Sep 2018 14:18:34 +0900 Subject: Implement #2736 --- src/server/api/stream/home.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/api/stream') diff --git a/src/server/api/stream/home.ts b/src/server/api/stream/home.ts index f1fced42d7..5575d0d523 100644 --- a/src/server/api/stream/home.ts +++ b/src/server/api/stream/home.ts @@ -9,6 +9,7 @@ import readNotification from '../common/read-notification'; import call from '../call'; import { IApp } from '../../../models/app'; import shouldMuteThisNote from '../../../misc/should-mute-this-note'; +import readNote from '../../../services/note/read'; const log = debug('misskey'); @@ -94,6 +95,9 @@ export default async function( if (!msg.id) return; log(`CAPTURE: ${msg.id} by @${user.username}`); subscriber.on(`note-stream:${msg.id}`, onNoteStream); + if (msg.read) { + readNote(user._id, msg.id); + } break; case 'decapture': -- cgit v1.2.3-freya