summaryrefslogtreecommitdiff
path: root/src/server/api/stream
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-23 15:06:56 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-23 15:06:56 +0900
commit7e4a800352dd1de91a7a6c457b39f297d76fd9bf (patch)
tree174117f77dcc50defb3081b94a67c3de5c63c5cf /src/server/api/stream
parentコミット忘れ (diff)
downloadsharkey-7e4a800352dd1de91a7a6c457b39f297d76fd9bf.tar.gz
sharkey-7e4a800352dd1de91a7a6c457b39f297d76fd9bf.tar.bz2
sharkey-7e4a800352dd1de91a7a6c457b39f297d76fd9bf.zip
noteのread処理
Diffstat (limited to 'src/server/api/stream')
-rw-r--r--src/server/api/stream/index.ts15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/server/api/stream/index.ts b/src/server/api/stream/index.ts
index 99ae558696..1dcc31d32f 100644
--- a/src/server/api/stream/index.ts
+++ b/src/server/api/stream/index.ts
@@ -168,17 +168,10 @@ export default class Connection {
if (note == null) return;
if (this.user && (note.userId !== this.user.id)) {
- if (note.mentions && note.mentions.includes(this.user.id)) {
- readNote(this.user.id, [note]);
- } else if (note.visibleUserIds && note.visibleUserIds.includes(this.user.id)) {
- readNote(this.user.id, [note]);
- }
-
- if (this.followingChannels.has(note.channelId)) {
- // TODO
- }
-
- // TODO: アンテナの既読処理
+ readNote(this.user.id, [note], {
+ following: this.following,
+ followingChannels: this.followingChannels,
+ });
}
}