From d2366e2e185728139188d2f9421fd1d41d5cbd15 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 9 Mar 2024 19:24:56 +1300 Subject: [PATCH] make FULL_AP_CONTEXT work properly --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 8ad4227b..75604f98 100644 --- a/config.py +++ b/config.py @@ -23,7 +23,7 @@ class Config(object): RECAPTCHA_PRIVATE_KEY = os.environ.get("RECAPTCHA_PRIVATE_KEY") MODE = os.environ.get('MODE') or 'development' LANGUAGES = ['en'] - FULL_AP_CONTEXT = os.environ.get('FULL_AP_CONTEXT') is not None + FULL_AP_CONTEXT = bool(int(os.environ.get('FULL_AP_CONTEXT', 0))) CACHE_TYPE = os.environ.get('CACHE_TYPE') or 'FileSystemCache' CACHE_REDIS_URL = os.environ.get('CACHE_REDIS_URL') or 'redis://localhost:6379/1' CACHE_DIR = os.environ.get('CACHE_DIR') or '/dev/shm/pyfedi'