Nattiden vor 1 Jahr
Ursprung
Commit
2c5787807d

+ 1 - 1
Project/configs/config.yml

@@ -1,3 +1,3 @@
-Process.Update.Github: True
+Server.Update.GitHub.Webhook.Enable: True
 Public.domain: news.bugjump.net
 Server.Version.By: githash

+ 1 - 1
Project/libraries/__LIBRARY__.yml

@@ -3,4 +3,4 @@ fill:
   canswap: true
   s: true
   isswaped: ${s}
-  domain: ${@public_conf|domain|news.bugjump.net}
+  domain: ${@PublicConf|domain|news.bugjump.net}

+ 4 - 3
Project/modules/CheckDomainSafety.py

@@ -3,6 +3,7 @@ from homepagebuilder.interfaces.Events import on, ResultOverride
 
 @on('page.generate.start')
 def script(_page,env):
-    if mod_domain := env.get('setter').override.get('domain'):
-        if mod_domain not in config('safe_domains',['news.bugjump.net']):
-            raise ResultOverride('')
+    if env.get('setter'):
+        if mod_domain := env.get('setter').override.get('domain'):
+            if mod_domain not in config('safe_domains',['news.bugjump.net']):
+                raise ResultOverride('')