summaryrefslogtreecommitdiff
path: root/src/services/note/create.ts
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2019-02-06 22:44:55 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-02-06 22:44:55 +0900
commit96bc17aa1014983d5e6bf8b4c05d898156995a0d (patch)
treefdf7c68bdbf3784988351004127db988d7c40c29 /src/services/note/create.ts
parentFix bug (diff)
downloadsharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.gz
sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.tar.bz2
sharkey-96bc17aa1014983d5e6bf8b4c05d898156995a0d.zip
Check config on load (#4170)
Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
Diffstat (limited to 'src/services/note/create.ts')
-rw-r--r--src/services/note/create.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 9ccf3be9e8..6afdcbbfbd 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -500,7 +500,7 @@ async function insertNote(user: IUser, data: Option, tags: string[], emojis: str
}
function index(note: INote) {
- if (note.text == null || config.elasticsearch == null) return;
+ if (note.text == null || !config.elasticsearch.isJust()) return;
es.index({
index: 'misskey',