mirror of
https://github.com/sim1222/misskey.git
synced 2025-08-04 15:53:51 +09:00
refactor
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user