From 8af50dea366be35c5c29faa9023e9f9edc8693ae Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Mon, 10 Oct 2022 17:13:42 +0100 Subject: [PATCH] format --- lib/pleroma/activity.ex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/pleroma/activity.ex b/lib/pleroma/activity.ex index 12601b4af..b01a838d8 100644 --- a/lib/pleroma/activity.ex +++ b/lib/pleroma/activity.ex @@ -369,7 +369,14 @@ defmodule Pleroma.Activity do def restrict_deactivated_users(query) do query - |> join(:inner_lateral, [activity], active in fragment("SELECT is_active from users WHERE ap_id = ? AND is_active = TRUE", activity.actor)) + |> join( + :inner_lateral, + [activity], + active in fragment( + "SELECT is_active from users WHERE ap_id = ? AND is_active = TRUE", + activity.actor + ) + ) end defdelegate search(user, query, options \\ []), to: Pleroma.Search.DatabaseSearch