enhance(backend): improve featured system
This commit is contained in:
parent
e4dcab8671
commit
dab205edb8
10 changed files with 208 additions and 33 deletions
|
@ -67,7 +67,6 @@ export class NoteDeleteService {
|
|||
// この投稿を除く指定したユーザーによる指定したノートのリノートが存在しないとき
|
||||
if (note.renoteId && (await this.noteEntityService.countSameRenotes(user.id, note.renoteId, note.id)) === 0) {
|
||||
this.notesRepository.decrement({ id: note.renoteId }, 'renoteCount', 1);
|
||||
if (!user.isBot) this.notesRepository.decrement({ id: note.renoteId }, 'score', 1);
|
||||
}
|
||||
|
||||
if (note.replyId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue