perf: myReaction の取得をまとめて行うように

Related #6813
This commit is contained in:
syuilo
2021-03-19 10:53:09 +09:00
parent 0b5e3a93a5
commit 65e7204ec9
2 changed files with 44 additions and 4 deletions

View File

@ -15,6 +15,7 @@ import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-e
import { NoteReaction } from '../../../models/entities/note-reaction';
export default async (user: User, note: Note, reaction?: string) => {
// TODO: cache
reaction = await toDbReaction(reaction, user.host);
let record: NoteReaction;