Skip to content

Commit

Permalink
scoreにRenoteは含めないように
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Feb 16, 2020
1 parent 036a0af commit 57fd8c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/services/note/create.ts
Expand Up @@ -424,8 +424,7 @@ async function renderNoteOrRenoteActivity(data: Option, note: INote, user: IUser
function incRenoteCount(renote: INote) {
Note.update({ _id: renote._id }, {
$inc: {
renoteCount: 1,
score: 1
renoteCount: 1
}
});
}
Expand Down
3 changes: 1 addition & 2 deletions src/services/note/delete.ts
Expand Up @@ -45,8 +45,7 @@ export default async function(user: IUser, note: INote, quiet = false) {
if (note.renoteId) {
Note.update({ _id: note.renoteId }, {
$inc: {
renoteCount: -1,
score: -1
renoteCount: -1
},
$pull: {
_quoteIds: note._id
Expand Down

0 comments on commit 57fd8c5

Please sign in to comment.