diff options
author | Lain Soykaf <lain@lain.com> | 2023-12-16 20:32:13 +0400 |
---|---|---|
committer | Lain Soykaf <lain@lain.com> | 2023-12-16 20:32:13 +0400 |
commit | c212fc1dcfae578e83a0a8fb036da30ca0b92f56 (patch) | |
tree | 7813d17135ce9abf605c1189c1f98f2b098ebc04 | |
parent | 3fbc80eb585b44e2f315b9bf02b655b50ee473d3 (diff) | |
download | pleroma-c212fc1dcfae578e83a0a8fb036da30ca0b92f56.tar.gz pleroma-c212fc1dcfae578e83a0a8fb036da30ca0b92f56.zip |
User: Ignore non-local users when setting 'last active at'
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 0706f5607..ddeaf0624 100644 --- 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) |