enhance(backend): some tweaks

This commit is contained in:
syuilo
2023-10-06 16:17:29 +09:00
parent 132b01461d
commit 87416710c3
4 changed files with 3 additions and 24 deletions

View File

@@ -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) {