summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-05-09 21:33:30 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-05-14 23:24:24 -0400
commit2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67 (patch)
tree4c70257ab939c60735039fb3d42ef3bc3f7cdbbc /packages/backend/src/core/NoteCreateService.ts
parentmerge: Allow port ranges in allowedPrivateIps (!1025) (diff)
downloadsharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.tar.gz
sharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.tar.bz2
sharkey-2e4ec0dd9e8f2d34592a4b8aa418c5bbe1ac5a67.zip
add role policy to allow note trending
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index e961d4236c..b810ae0b5b 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -826,12 +826,12 @@ export class NoteCreateService implements OnApplicationShutdown {
if (Math.random() < 0.3 && (Date.now() - this.idService.parse(renote.id).date.getTime()) < 1000 * 60 * 60 * 24 * 3) {
if (renote.channelId != null) {
if (renote.replyId == null) {
- this.featuredService.updateInChannelNotesRanking(renote.channelId, renote.id, 5);
+ this.featuredService.updateInChannelNotesRanking(renote.channelId, renote, 5);
}
} else {
if (renote.visibility === 'public' && renote.userHost == null && renote.replyId == null) {
- this.featuredService.updateGlobalNotesRanking(renote.id, 5);
- this.featuredService.updatePerUserNotesRanking(renote.userId, renote.id, 5);
+ this.featuredService.updateGlobalNotesRanking(renote, 5);
+ this.featuredService.updatePerUserNotesRanking(renote.userId, renote, 5);
}
}
}