summaryrefslogtreecommitdiff
path: root/src/models/note.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-25 21:09:38 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-25 21:09:38 +0900
commitafdacf14b7d114e542dbed60c029948b2ea5910d (patch)
treed9a4c066f5f72ca4597b54e5baa0ed945fe4599c /src/models/note.ts
parentFix #2766 (diff)
downloadsharkey-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.ts1
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