Apply suggestion to lib/pleroma/filter.ex

This commit is contained in:
Alexander Strizhakov 2020-02-26 13:59:07 +00:00
parent 6558f31cda
commit 771748db1f
No known key found for this signature in database
GPG key ID: 022896A53AEF1381

View file

@ -42,7 +42,7 @@ def get_irreversible(query) do
from(f in query, where: f.hide)
end
def get_by_user(query, %User{id: user_id} = _user) do
def get_filters(query \\ __MODULE__, %User{id: user_id}) do
query =
from(
f in query,