Video support

This commit is contained in:
Thomas Sileo
2018-09-02 19:43:09 +02:00
parent bd0eaf5252
commit 3b186f23d3
5 changed files with 44 additions and 9 deletions

View File

@@ -105,6 +105,10 @@ MEDIA_CACHE = MediaCache(GRIDFS, USER_AGENT)
def create_indexes():
DB.activities.create_index([("remote_id", pymongo.ASCENDING)])
DB.activities.create_index([("activity.object.id", pymongo.ASCENDING)])
DB.activities.create_index([
("activity.object.id", pymongo.ASCENDING),
("meta.deleted", pymongo.ASCENDING),
])
# Index for the block query
DB.activities.create_index(