diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-25 21:09:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-25 21:09:38 +0900 |
| commit | afdacf14b7d114e542dbed60c029948b2ea5910d (patch) | |
| tree | d9a4c066f5f72ca4597b54e5baa0ed945fe4599c /src/models/note.ts | |
| parent | Fix #2766 (diff) | |
| download | sharkey-afdacf14b7d114e542dbed60c029948b2ea5910d.tar.gz sharkey-afdacf14b7d114e542dbed60c029948b2ea5910d.tar.bz2 sharkey-afdacf14b7d114e542dbed60c029948b2ea5910d.zip | |
Add excludeNsfw option
Diffstat (limited to 'src/models/note.ts')
| -rw-r--r-- | src/models/note.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models/note.ts b/src/models/note.ts index ba88e9f481..f67eeaaf6e 100644 --- a/src/models/note.ts +++ b/src/models/note.ts @@ -20,6 +20,7 @@ Note.createIndex('userId'); Note.createIndex('mentions'); Note.createIndex('visibleUserIds'); Note.createIndex('tagsLower'); +Note.createIndex('_files._id'); Note.createIndex('_files.contentType'); Note.createIndex({ createdAt: -1 |