From 83c97568259d5bf34f2117f37c5ec61495f9bc5b Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Fri, 6 Jun 2025 17:10:33 -0700 Subject: [PATCH] Remove unncessary NaiveDateTime call. Every non-nil entry in the database is considered unreachable. --- lib/pleroma/instances/instance.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/instances/instance.ex b/lib/pleroma/instances/instance.ex index baccc314c..7b7127973 100644 --- 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 ) )