diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-30 22:12:10 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-30 22:12:10 +0900 |
| commit | caa47cb38cfc3950539c78ca2e70f2c50e815d2c (patch) | |
| tree | fc1a70e1c1b105ecf8d74ff4d952eff86ded83f6 /src/api/stream | |
| parent | i18n (diff) | |
| download | sharkey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.tar.gz sharkey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.tar.bz2 sharkey-caa47cb38cfc3950539c78ca2e70f2c50e815d2c.zip | |
未読の通知がある場合アイコンを表示するように
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; |