summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-04-09 17:01:03 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-04-09 17:01:03 +0900
commitb56f4b27ee8accbff040de5679fbf1c85481556b (patch)
treeabbc9d2fff93bd9f406a4f378bf9e8c3c7b8f24f /packages/backend/src/server/api
parenttest: add `/@:acct` stories (#10517) (diff)
downloadsharkey-b56f4b27ee8accbff040de5679fbf1c85481556b.tar.gz
sharkey-b56f4b27ee8accbff040de5679fbf1c85481556b.tar.bz2
sharkey-b56f4b27ee8accbff040de5679fbf1c85481556b.zip
fix(backend): ストリーミングのLTLチャンネルでサーバー側にエラーログが出るのを修正
Diffstat (limited to 'packages/backend/src/server/api')
-rw-r--r--packages/backend/src/server/api/stream/channels/local-timeline.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/server/api/stream/channels/local-timeline.ts b/packages/backend/src/server/api/stream/channels/local-timeline.ts
index 836c5aae6c..09b0005ac1 100644
--- a/packages/backend/src/server/api/stream/channels/local-timeline.ts
+++ b/packages/backend/src/server/api/stream/channels/local-timeline.ts
@@ -54,10 +54,10 @@ class LocalTimelineChannel extends Channel {
}
// 関係ない返信は除外
- if (note.reply && !this.user!.showTimelineReplies) {
+ if (note.reply && this.user && !this.user.showTimelineReplies) {
const reply = note.reply;
// 「チャンネル接続主への返信」でもなければ、「チャンネル接続主が行った返信」でもなければ、「投稿者の投稿者自身への返信」でもない場合
- if (reply.userId !== this.user!.id && note.userId !== this.user!.id && reply.userId !== note.userId) return;
+ if (reply.userId !== this.user.id && note.userId !== this.user.id && reply.userId !== note.userId) return;
}
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する