projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca9e6ff
)
format
author
FloatingGhost
<hannah@coffee-and-dreams.uk>
Mon, 10 Oct 2022 16:13:42 +0000
(17:13 +0100)
committer
FloatingGhost
<hannah@coffee-and-dreams.uk>
Mon, 10 Oct 2022 16:13:42 +0000
(17:13 +0100)
lib/pleroma/activity.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/activity.ex
b/lib/pleroma/activity.ex
index 12601b4af7ce6566e06d0ffb944be69152a3e7d5..b01a838d865363aaad1fc63ecba09180d1146f5d 100644
(file)
--- 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