1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 02:36:32 +02:00
This commit is contained in:
syuilo
2021-03-18 17:38:42 +09:00
parent 449ea4b669
commit bffdfea58a

View File

@@ -12,11 +12,12 @@ import { genId } from '../../../misc/gen-id';
import { createNotification } from '../../create-notification';
import deleteReaction from './delete';
import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-error';
import { NoteReaction } from '../../../models/entities/note-reaction';
export default async (user: User, note: Note, reaction?: string) => {
reaction = await toDbReaction(reaction, user.host);
let record;
let record: NoteReaction;
// Create reaction
try {