Apply suggestion to lib/pleroma/filter.ex
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Wed, 26 Feb 2020 13:59:07 +0000 (13:59 +0000)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 6 Jul 2020 06:30:41 +0000 (09:30 +0300)
lib/pleroma/filter.ex

index 91884c6b38b17de25374320db52e001f612a4eb4..98cb575a9e05f899e4745df73025e5b3f7c9e250 100644 (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,