diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:58:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-13 18:58:29 +0900 |
| commit | 1181fcdcebad0f3a8538ae6d10d70e6f7ea9468b (patch) | |
| tree | 0cda73ba54875b4497bd741b0a66447b3481fa6d /src/services | |
| parent | リプライ先をエラー時に無視すると本来は投票なのに投... (diff) | |
| download | sharkey-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.ts | 2 |
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'); |