Implement featured note API

This commit is contained in:
syuilo 2018-10-25 07:04:15 +09:00
parent 407467a236
commit 380f5a972c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 65 additions and 8 deletions

View file

@ -314,7 +314,8 @@ async function renderActivity(data: Option, note: INote) {
function incRenoteCount(renote: INote) {
Note.update({ _id: renote._id }, {
$inc: {
renoteCount: 1
renoteCount: 1,
score: 1
}
});
}