Update user

This commit is contained in:
Mirai Kumiko 2025-06-18 19:47:55 +02:00
parent 9d72fb293b
commit 74514f02a1
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
3 changed files with 11 additions and 27 deletions

View file

@ -13,11 +13,9 @@ defmodule NullaWeb.NodeinfoController do
def show(conn, _params) do
version = Application.spec(:nulla, :vsn) |> to_string()
instance_settings = InstanceSettings.get_instance_settings!()
domain = instance_settings.domain
total = User.get_total_users_count(domain)
month = User.get_active_users_count(domain, 30)
halfyear = User.get_active_users_count(domain, 180)
total = User.get_total_users_count()
month = User.get_active_users_count(30)
halfyear = User.get_active_users_count(180)
users = %{
total: total,