diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-06 18:30:08 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-06 18:30:08 +0900 |
| commit | a5b6e807bb6aaf3212f88b4ec4f96c285a80e390 (patch) | |
| tree | b33b8a2810d19eea0fba105c0686526821900bae /packages/backend/src/core/ReactionService.ts | |
| parent | 2023.10.0-beta.4 (diff) | |
| download | misskey-a5b6e807bb6aaf3212f88b4ec4f96c285a80e390.tar.gz misskey-a5b6e807bb6aaf3212f88b4ec4f96c285a80e390.tar.bz2 misskey-a5b6e807bb6aaf3212f88b4ec4f96c285a80e390.zip | |
feat: per user featured notes
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
| -rw-r--r-- | packages/backend/src/core/ReactionService.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts index e409495de5..63cf4be322 100644 --- a/packages/backend/src/core/ReactionService.ts +++ b/packages/backend/src/core/ReactionService.ts @@ -195,9 +195,10 @@ export class ReactionService { // 30%の確率でハイライト用ランキング更新 if (Math.random() < 0.3 && note.userId !== user.id) { if (note.channelId != null) { - this.featuredService.updateInChannelNotesRanking(note.id, note.channelId, 1); + this.featuredService.updateInChannelNotesRanking(note.channelId, note.id, 1); } else if (note.visibility === 'public' && note.userHost == null) { this.featuredService.updateGlobalNotesRanking(note.id, 1); + this.featuredService.updatePerUserNotesRanking(note.userId, note.id, 1); } } |