summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:58:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-13 18:58:29 +0900
commit1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b (patch)
tree0cda73ba54875b4497bd741b0a66447b3481fa6d /src/services
parentリプライ先をエラー時に無視すると本来は投票なのに投... (diff)
downloadsharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.tar.gz
sharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.tar.bz2
sharkey-1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b.zip
Fix bug
Diffstat (limited to 'src/services')
-rw-r--r--src/services/note/reaction/create.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/note/reaction/create.ts b/src/services/note/reaction/create.ts
index ea2108430a..6db210ea6d 100644
--- a/src/services/note/reaction/create.ts
+++ b/src/services/note/reaction/create.ts
@@ -16,7 +16,7 @@ import { NoteReaction } from '../../../models/entities/note-reaction';
import { createNotification } from '../../create-notification';
import { isDuplicateKeyValueError } from '../../../misc/is-duplicate-key-value-error';
-export default async (user: User, note: Note, reaction: string) => {
+export default async (user: User, note: Note, reaction?: string) => {
// Myself
if (note.userId === user.id) {
throw new IdentifiableError('2d8e7297-1873-4c00-8404-792c68d7bef0', 'cannot react to my note');