Skip to content

Commit

Permalink
enhance: ローカルタイムライン、ソーシャルタイムラインで返信を含むかどうか設定可能に (redis更新のみ)
Browse files Browse the repository at this point in the history
Picks 7a8d5e5
  • Loading branch information
syuilo authored and anatawa12 committed Oct 11, 2023
1 parent f4daa12 commit ab3c018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/backend/src/core/NoteCreateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,10 @@ export class NoteCreateService implements OnApplicationShutdown {
// 自分自身以外への返信
if (note.replyId && note.replyUserId !== note.userId) {
this.redisTimelineService.push(`userTimelineWithReplies:${user.id}`, note.id, 300, 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, 300, r);
if (note.fileIds.length > 0) {
Expand Down

0 comments on commit ab3c018

Please sign in to comment.