enh: enable message rating setting

This commit is contained in:
Timothy J. Baek
2024-08-19 15:16:49 +02:00
parent 5abe1076ed
commit 0fa85c5c64
7 changed files with 117 additions and 106 deletions
+6
View File
@@ -842,6 +842,12 @@ ENABLE_COMMUNITY_SHARING = PersistentConfig(
os.environ.get("ENABLE_COMMUNITY_SHARING", "True").lower() == "true",
)
ENABLE_MESSAGE_RATING = PersistentConfig(
"ENABLE_MESSAGE_RATING",
"ui.enable_message_rating",
os.environ.get("ENABLE_MESSAGE_RATING", "True").lower() == "true",
)
def validate_cors_origins(origins):
for origin in origins: