summaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-25 07:46:39 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-25 07:46:39 +0900
commit0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d (patch)
tree38d3d6b2112326bb1a03a8732cd8969e24d693de /src/services
parentFix #4793 (diff)
downloadsharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.gz
sharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.bz2
sharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.zip
Resolve #3119
Diffstat (limited to 'src/services')
-rw-r--r--src/services/note/create.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/services/note/create.ts b/src/services/note/create.ts
index 53e77b4ef2..dd47632caa 100644
--- a/src/services/note/create.ts
+++ b/src/services/note/create.ts
@@ -435,11 +435,12 @@ function index(note: Note) {
if (note.text == null || config.elasticsearch == null) return;
es!.index({
- index: 'misskey',
- type: 'note',
+ index: 'misskey_note',
id: note.id.toString(),
body: {
- text: note.text
+ text: note.text.toLowerCase(),
+ userId: note.userId,
+ userHost: note.userHost
}
});
}