diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-09 21:33:30 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-14 23:24:24 -0400 |
| commit | 2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67 (patch) | |
| tree | 4c70257ab939c60735039fb3d42ef3bc3f7cdbbc /packages/backend/src/core/ReactionService.ts | |
| parent | merge: Allow port ranges in allowedPrivateIps (!1025) (diff) | |
| download | sharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.tar.gz sharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.tar.bz2 sharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.zip | |
add role policy to allow note trending
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
| -rw-r--r-- | packages/backend/src/core/ReactionService.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts index 0179b0680f..6cc4ef4205 100644 --- a/packages/backend/src/core/ReactionService.ts +++ b/packages/backend/src/core/ReactionService.ts @@ -220,12 +220,12 @@ export class ReactionService { ) { if (note.channelId != null) { if (note.replyId == null) { - this.featuredService.updateInChannelNotesRanking(note.channelId, note.id, 1); + this.featuredService.updateInChannelNotesRanking(note.channelId, note, 1); } } else { if (note.visibility === 'public' && note.userHost == null && note.replyId == null) { - this.featuredService.updateGlobalNotesRanking(note.id, 1); - this.featuredService.updatePerUserNotesRanking(note.userId, note.id, 1); + this.featuredService.updateGlobalNotesRanking(note, 1); + this.featuredService.updatePerUserNotesRanking(note.userId, note, 1); } } } |