Implement redaction for search results

This commit is contained in:
2022-07-21 13:49:27 +01:00
parent dfabddb6b1
commit 2362048cc7
4 changed files with 36 additions and 3 deletions

View File

@@ -10,6 +10,11 @@ OPENSEARCH_INDEX_META = "meta"
OPENSEARCH_MAIN_SEARCH_FIELDS = ["msg"]
OPENSEARCH_BLACKLISTED = {
"msg": ["example.com"],
"nick": ["me"],
}
# URLs
DOMAIN = "example.com"
URL = f"https://{DOMAIN}"