User: Ignore non-local users when setting 'last active at'
This commit is contained in:
parent
3fbc80eb58
commit
c212fc1dcf
|
@ -2681,6 +2681,8 @@ def update_last_active_at(%__MODULE__{local: true} = 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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue