diff options
author | Alibek Omarov <a1ba.omarov@gmail.com> | 2021-11-15 16:58:25 +0100 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2021-11-15 17:01:30 +0100 |
commit | 04aca335aa44a34562c4eba6cbff3875cc76b486 (patch) | |
tree | 0ba63a9affd35f03d53a61cbe683041f903a142d /lib/pleroma/web/nodeinfo | |
parent | 4d341f51e17c36f8c59246d9b7dc5d8793b9fd78 (diff) | |
download | pleroma-04aca335aa44a34562c4eba6cbff3875cc76b486.tar.gz |
nodeinfo: report activeMonth and activeHalfyear users fields
Diffstat (limited to 'lib/pleroma/web/nodeinfo')
-rw-r--r-- | lib/pleroma/web/nodeinfo/nodeinfo.ex | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/web/nodeinfo/nodeinfo.ex b/lib/pleroma/web/nodeinfo/nodeinfo.ex index 6a0112d2a..3781781c8 100644 --- a/lib/pleroma/web/nodeinfo/nodeinfo.ex +++ b/lib/pleroma/web/nodeinfo/nodeinfo.ex @@ -35,7 +35,9 @@ defmodule Pleroma.Web.Nodeinfo.Nodeinfo do openRegistrations: Config.get([:instance, :registrations_open]), usage: %{ users: %{ - total: Map.get(stats, :user_count, 0) + total: Map.get(stats, :user_count, 0), + activeMonth: Pleroma.User.active_user_count(30), + activeHalfyear: Pleroma.User.active_user_count(180) }, localPosts: Map.get(stats, :status_count, 0) }, |