From dd01bd1be419e21ea42aed8c053c5149c45f77c2 Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Sat, 6 Dec 2025 20:16:30 +0100 Subject: [PATCH] add /v1/about/about --- freak/rest/__init__.py | 6 ++++++ freak/templates/about.html | 25 +++---------------------- freak/templates/about.md | 25 +++++++++++++++++++++++++ freak/templates/terms.md | 2 ++ pyproject.toml | 2 +- 5 files changed, 37 insertions(+), 23 deletions(-) create mode 100644 freak/templates/about.md diff --git a/freak/rest/__init__.py b/freak/rest/__init__.py index 39099d0..aa91389 100644 --- a/freak/rest/__init__.py +++ b/freak/rest/__init__.py @@ -443,6 +443,12 @@ async def patch_settings_appearance(data: SettingsIn): ## TERMS +@bp.get('/about/about') +async def about_about(): + return dict( + content=await render_template("about.md") + ) + @bp.get('/about/terms') async def terms(): return dict( diff --git a/freak/templates/about.html b/freak/templates/about.html index 90a3090..0474652 100644 --- a/freak/templates/about.html +++ b/freak/templates/about.html @@ -9,28 +9,9 @@ {% block content %}
-

Stats

- - -

Software versions

- - -

License

-

Source code is available at: https://nekode.yusur.moe/yusur/freak

- - {% if impressum %} -

Legal Contacts

-
{{ impressum }}
- {% endif %} - +{% filter to_markdown %} +{% include "about.md" %} +{% endfilter %}
{% endblock %} diff --git a/freak/templates/about.md b/freak/templates/about.md new file mode 100644 index 0000000..a3bd15e --- /dev/null +++ b/freak/templates/about.md @@ -0,0 +1,25 @@ + +## Stats + +* \# of posts: **{{ post_count }}** +* \# of active users (posters in the last 30 days): **{{ user_count }}** + +## Software versions + +* **Python**: {{ python_version }} +* **SQLAlchemy**: {{ sa_version }} +* **Quart**: {{ quart_version }} +* **{{ app_name }}**: {{ app_version }} + +## License + +Source code is available at: + +{% if impressum %} +## Legal Contacts + +``` +{{ impressum }} +``` +{% endif %} + diff --git a/freak/templates/terms.md b/freak/templates/terms.md index 9c9e3b8..5e480e2 100644 --- a/freak/templates/terms.md +++ b/freak/templates/terms.md @@ -28,6 +28,8 @@ privacy-related requests. Any contact request knowingly from people younger than United States resident under the age of 18 are **not allowed** in any way to access our network without logging in. +Australian and Danish users under the age of 16 are not authorized to use their accounts. + New Digital Spirit reserves the right to require ID verification in case of age doubt or suspected security threat. Minors on New Digital Spirit Network are additionally bound to the [Minor Account Policy](https://ndspir.it/u18.html), diff --git a/pyproject.toml b/pyproject.toml index 5217294..a800391 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dependencies = [ "libsass", "setuptools>=78.1.0", "Hypercorn", - "suou[sqlalchemy]>=0.11.1" + "suou[sqlalchemy]>=0.11.2" ] requires-python = ">=3.10" classifiers = [