Emojis \o/ and fix threads

This commit is contained in:
Thomas Sileo
2019-04-10 22:50:36 +02:00
parent e01891d364
commit c100796c86
5 changed files with 71 additions and 17 deletions

View File

@@ -106,6 +106,10 @@ def create_indexes():
DB.command("compact", "activities")
DB.activities.create_index([("remote_id", pymongo.ASCENDING)])
DB.activities.create_index([("activity.object.id", pymongo.ASCENDING)])
DB.activities.create_index([("meta.thread_root_parent", pymongo.ASCENDING)])
DB.activities.create_index(
[("meta.thread_root_parent", pymongo.ASCENDING), ("meta.deleted", pymongo.ASCENDING)]
)
DB.activities.create_index(
[("activity.object.id", pymongo.ASCENDING), ("meta.deleted", pymongo.ASCENDING)]
)
@@ -195,3 +199,6 @@ ME = {
},
"publicKey": KEY.to_dict(),
}
# TODO(tsileo): read the config from the YAML if set
EMOJIS = "😺 😸 😹 😻 😼 😽 🙀 😿 😾 😺 😸 😹 😻 😼 😽 🙀 😿 😾"