commit: 83c97568259d5bf34f2117f37c5ec61495f9bc5b
parent 0fe03fc4eef0159e3015d68d75ec42ea11f649cf
Author: Mark Felder <feld@feld.me>
Date: Fri, 6 Jun 2025 17:10:33 -0700
Remove unncessary NaiveDateTime call.
Every non-nil entry in the database is considered unreachable.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/instances/instance.ex b/lib/pleroma/instances/instance.ex
@@ -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
)
)