Remove unncessary NaiveDateTime call.

Every non-nil entry in the database is considered unreachable.
This commit is contained in:
Mark Felder 2025-06-06 17:10:33 -07:00
commit 83c9756825

View file

@ -84,7 +84,7 @@ defmodule Pleroma.Instances.Instance do
from(i in Instance,
where:
i.host == ^host(url_or_host) and
i.unreachable_since <= ^NaiveDateTime.utc_now(),
not is_nil(i.unreachable_since),
select: true
)
)