Implement featured note API
This commit is contained in:
parent
407467a236
commit
380f5a972c
4 changed files with 65 additions and 8 deletions
|
@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue