Config: Use from_yaml constructor for PagesEnabled

`PagesEnabled` doesn't define a blank constructor without any
parameters meaning that `PagesEnabled.new` leads to a error due to lack
of arguments
This commit is contained in:
syeopite 2025-08-24 23:06:12 -07:00
parent 116a5db24d
commit ba65e4ff25
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -158,7 +158,7 @@ class Config
# Global per-page feature toggles.
# Valid keys: "trending", "popular", "search"
# If someone sets both `popular_enabled` and `pages_enabled["popular"]`, the latter takes precedence.
property pages_enabled : PagesEnabled = PagesEnabled.new
property pages_enabled : PagesEnabled = PagesEnabled.from_yaml("")
# —————————————————————————————————————————————————————————————————————————————————————
property captcha_enabled : Bool = true