diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-31 21:32:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-31 21:32:38 +0900 |
| commit | 0e95cdb04c5f91e44ef95e592f830485e61b6073 (patch) | |
| tree | acbc195491777c8c67b2cc39f0447e6406915321 /src/api/stream | |
| parent | wip (diff) | |
| parent | v2752 (diff) | |
| download | misskey-0e95cdb04c5f91e44ef95e592f830485e61b6073.tar.gz misskey-0e95cdb04c5f91e44ef95e592f830485e61b6073.tar.bz2 misskey-0e95cdb04c5f91e44ef95e592f830485e61b6073.zip | |
Merge remote-tracking branch 'refs/remotes/origin/master' into bbs
Diffstat (limited to 'src/api/stream')
| -rw-r--r-- | src/api/stream/home.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/api/stream/home.ts b/src/api/stream/home.ts index d5fe01c261..7c8f3bfec8 100644 --- a/src/api/stream/home.ts +++ b/src/api/stream/home.ts @@ -4,6 +4,7 @@ import * as debug from 'debug'; import User from '../models/user'; import serializePost from '../serializers/post'; +import readNotification from '../common/read-notification'; const log = debug('misskey'); @@ -45,6 +46,11 @@ export default function homeStream(request: websocket.request, connection: webso }); break; + case 'read_notification': + if (!msg.id) return; + readNotification(user._id, msg.id); + break; + case 'capture': if (!msg.id) return; const postId = msg.id; |