commit: c212fc1dcfae578e83a0a8fb036da30ca0b92f56
parent 3fbc80eb585b44e2f315b9bf02b655b50ee473d3
Author: Lain Soykaf <lain@lain.com>
Date: Sat, 16 Dec 2023 20:32:13 +0400
User: Ignore non-local users when setting 'last active at'
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex
@@ -2681,6 +2681,8 @@ defmodule Pleroma.User do
|> update_and_set_cache()
end
+ def update_last_active_at(user), do: user
+
def active_user_count(days \\ 30) do
active_after = Timex.shift(NaiveDateTime.utc_now(), days: -days)