rss mention fix attempt; SITE_NAME is now required

This commit is contained in:
2025-12-20 15:56:47 +03:00
parent 46704df7d9
commit 7aa3a9382e
3 changed files with 17 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ from .constants import (
SIG_BANNED_TAGS, STRICT_BANNED_TAGS,
)
from .lib.babycode import babycode_to_html, babycode_to_rssxml, EMOJI, BABYCODE_VERSION
from .lib.exceptions import SiteNameMissingException
from datetime import datetime, timezone
from flask_caching import Cache
import os
@@ -165,6 +166,8 @@ def create_app():
load_dotenv()
else:
app.config["DB_PATH"] = "data/db/db.prod.sqlite"
if not app.config["SERVER_NAME"]:
raise SiteNameMissingException()
app.config["SECRET_KEY"] = os.getenv("FLASK_SECRET_KEY")