Apply suggestion to lib/pleroma/filter.ex
This commit is contained in:
parent
6558f31cda
commit
771748db1f
@ -42,7 +42,7 @@ def get_irreversible(query) do
|
|||||||
from(f in query, where: f.hide)
|
from(f in query, where: f.hide)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_by_user(query, %User{id: user_id} = _user) do
|
def get_filters(query \\ __MODULE__, %User{id: user_id}) do
|
||||||
query =
|
query =
|
||||||
from(
|
from(
|
||||||
f in query,
|
f in query,
|
||||||
|
Loading…
Reference in New Issue
Block a user