From e798fd50a85d3e60a883e8179e8feabf857db053 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 17 Dec 2025 18:34:32 +0100 Subject: [PATCH] chore: remove umami analytics integration --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/snek/system/middleware.py | 1 - src/snek/templates/base.html | 1 - 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a68eea1..3ac3a91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ + +## Version 1.2.0 - 2025-12-17 + +Removes Umami analytics integration, eliminating user tracking functionality. Developers must handle analytics separately if needed. + +**Changes:** 2 files, 2 lines +**Languages:** HTML (1 lines), Python (1 lines) + ## Version 1.1.0 - 2025-12-17 Fixes potential errors in forum message handling by adding a null check for the star field, preventing crashes when the field is missing. Updates the message list display to handle starred messages more reliably. diff --git a/pyproject.toml b/pyproject.toml index dbd5af0..48ee9f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "Snek" -version = "1.1.0" +version = "1.2.0" readme = "README.md" #license = { file = "LICENSE", content-type="text/markdown" } description = "Snek Chat Application by Molodetz" diff --git a/src/snek/system/middleware.py b/src/snek/system/middleware.py index db25327..61cd97e 100644 --- a/src/snek/system/middleware.py +++ b/src/snek/system/middleware.py @@ -15,7 +15,6 @@ async def csp_middleware(request, handler): f"script-src 'self' {origin} 'nonce-{nonce}'; " f"style-src 'self' 'unsafe-inline' {origin} 'nonce-{nonce}'; " "img-src *; " - "connect-src 'self' https://umami.molodetz.nl; " "font-src *; " "object-src 'none'; " "base-uri 'self'; " diff --git a/src/snek/templates/base.html b/src/snek/templates/base.html index 982b2df..0ff8d22 100644 --- a/src/snek/templates/base.html +++ b/src/snek/templates/base.html @@ -24,7 +24,6 @@ - {% block head %} {% endblock %}