mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-27 00:09:35 +00:00
Apply suggestion to lib/pleroma/filter.ex
This commit is contained in:
parent
6558f31cda
commit
771748db1f
|
@ -42,7 +42,7 @@ defmodule Pleroma.Filter 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 a new issue