Improve instance chart

This commit is contained in:
syuilo 2019-04-08 14:29:17 +09:00
parent 1e166490d9
commit 1a2229f886
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
4 changed files with 40 additions and 3 deletions

View file

@ -56,7 +56,7 @@ export default async function(user: User, note: Note, quiet = false) {
if (Users.isRemoteUser(user)) {
registerOrFetchInstanceDoc(user.host).then(i => {
Instances.decrement({ id: i.id }, 'notesCount', 1);
instanceChart.updateNote(i.host, false);
instanceChart.updateNote(i.host, note, false);
});
}
}