enh: enable message rating setting

This commit is contained in:
Timothy J. Baek committed 2024-08-19 15:16:49 +02:00
1 parent 5abe1076ed
commit 0fa85c5c64
7 files changed
+117 -106

No files matched your search

+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: