diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-06 16:17:29 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-10-06 16:17:29 +0900 |
| commit | 87416710c323966aa267442acea419e62c56f325 (patch) | |
| tree | 1a20e58a37955d33f4f419332a62f10788e93f03 /packages/backend/src/core/ReactionService.ts | |
| parent | refactor (diff) | |
| download | misskey-87416710c323966aa267442acea419e62c56f325.tar.gz misskey-87416710c323966aa267442acea419e62c56f325.tar.bz2 misskey-87416710c323966aa267442acea419e62c56f325.zip | |
enhance(backend): some tweaks
Diffstat (limited to 'packages/backend/src/core/ReactionService.ts')
| -rw-r--r-- | packages/backend/src/core/ReactionService.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/backend/src/core/ReactionService.ts b/packages/backend/src/core/ReactionService.ts index 298a62ffd9..e409495de5 100644 --- a/packages/backend/src/core/ReactionService.ts +++ b/packages/backend/src/core/ReactionService.ts @@ -193,7 +193,7 @@ export class ReactionService { .execute(); // 30%の確率でハイライト用ランキング更新 - if (Math.random() < 0.3) { + if (Math.random() < 0.3 && note.userId !== user.id) { if (note.channelId != null) { this.featuredService.updateInChannelNotesRanking(note.id, note.channelId, 1); } else if (note.visibility === 'public' && note.userHost == null) { |