format
This commit is contained in:
parent
ca9e6ffc55
commit
8af50dea36
1 changed files with 8 additions and 1 deletions
|
@ -369,7 +369,14 @@ def following_requests_for_actor(%User{ap_id: ap_id}) 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
|
||||
|
|
Loading…
Reference in a new issue