Oneric
0e55849a54
This should hopefully fix valid Announces/Likes/etc being dropped sometimes due to intermittent network errors while resolving the referenced object. Additionally this now includes ap_enabled purge, since it proved buggy and the resulting logs are distracting while screening for issues with the WIP patches.
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 97e070b68ad4924516cceaa3e897251daf18c6ee Mon Sep 17 00:00:00 2001
|
|
From: Oneric <oneric@oneric.stub>
|
|
Date: Sun, 24 Nov 2024 17:45:08 +0100
|
|
Subject: [PATCH 15/22] stats: fix stat spec
|
|
|
|
---
|
|
lib/pleroma/stats.ex | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/pleroma/stats.ex b/lib/pleroma/stats.ex
|
|
index c47a0f9de..88740d155 100644
|
|
--- a/lib/pleroma/stats.ex
|
|
+++ b/lib/pleroma/stats.ex
|
|
@@ -39,7 +39,8 @@ def force_update do
|
|
@spec get_stats() :: %{
|
|
domain_count: non_neg_integer(),
|
|
status_count: non_neg_integer(),
|
|
- user_count: non_neg_integer()
|
|
+ user_count: non_neg_integer(),
|
|
+ remote_user_count: non_neg_integer()
|
|
}
|
|
def get_stats do
|
|
%{stats: stats} = GenServer.call(__MODULE__, :get_state)
|
|
@@ -60,7 +61,8 @@ def get_peers do
|
|
stats: %{
|
|
domain_count: non_neg_integer(),
|
|
status_count: non_neg_integer(),
|
|
- user_count: non_neg_integer()
|
|
+ user_count: non_neg_integer(),
|
|
+ remote_user_count: non_neg_integer()
|
|
}
|
|
}
|
|
def calculate_stat_data do
|
|
--
|
|
2.39.5
|
|
|