diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-04-25 07:46:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-04-25 07:46:39 +0900 |
| commit | 0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d (patch) | |
| tree | 38d3d6b2112326bb1a03a8732cd8969e24d693de /src/services | |
| parent | Fix #4793 (diff) | |
| download | sharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.gz sharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.tar.bz2 sharkey-0db54386cdef3f444f1afb4f3b8bfcaeab7ac68d.zip | |
Resolve #3119
Diffstat (limited to 'src/services')
| -rw-r--r-- | src/services/note/create.ts | 7 |
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 } }); } |