summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-10-11 10:15:44 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-10-11 10:15:44 +0900
commit7a8d5e58400a51218d673211219111238a8b7ae8 (patch)
tree3d1a3708337098d735a2ace446de44b46f0204bf /packages/backend/src/core/NoteCreateService.ts
parentfix(backend): フォローしているユーザーからの自分の投稿... (diff)
downloadsharkey-7a8d5e58400a51218d673211219111238a8b7ae8.tar.gz
sharkey-7a8d5e58400a51218d673211219111238a8b7ae8.tar.bz2
sharkey-7a8d5e58400a51218d673211219111238a8b7ae8.zip
enhance: ローカルタイムライン、ソーシャルタイムラインで返信を含むかどうか設定可能に
Resolve #12001
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 5227ea7323..64d2880ba1 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -907,6 +907,10 @@ export class NoteCreateService implements OnApplicationShutdown {
// 自分自身以外への返信
if (note.replyId && note.replyUserId !== note.userId) {
this.redisTimelineService.push(`userTimelineWithReplies:${user.id}`, note.id, note.userHost == null ? meta.perLocalUserUserTimelineCacheMax : meta.perRemoteUserUserTimelineCacheMax, r);
+
+ if (note.visibility === 'public' && note.userHost == null) {
+ this.redisTimelineService.push('localTimelineWithReplies', note.id, 300, r);
+ }
} else {
this.redisTimelineService.push(`userTimeline:${user.id}`, note.id, note.userHost == null ? meta.perLocalUserUserTimelineCacheMax : meta.perRemoteUserUserTimelineCacheMax, r);
if (note.fileIds.length > 0) {