mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-21 00:39:16 +00:00
format
This commit is contained in:
parent
ca9e6ffc55
commit
8af50dea36
|
@ -369,7 +369,14 @@ defmodule Pleroma.Activity do
|
||||||
|
|
||||||
def restrict_deactivated_users(query) do
|
def restrict_deactivated_users(query) do
|
||||||
query
|
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
|
end
|
||||||
|
|
||||||
defdelegate search(user, query, options \\ []), to: Pleroma.Search.DatabaseSearch
|
defdelegate search(user, query, options \\ []), to: Pleroma.Search.DatabaseSearch
|
||||||
|
|
Loading…
Reference in a new issue