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
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ defmodule Pleroma.Filter 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,