Make opts optional in Pleroma.Notification.for_user_query/2
This commit is contained in:
parent
c729883936
commit
168dc97c37
@ -33,7 +33,7 @@ defmodule Pleroma.Notification do
|
|||||||
|> cast(attrs, [:seen])
|
|> cast(attrs, [:seen])
|
||||||
end
|
end
|
||||||
|
|
||||||
def for_user_query(user, opts) do
|
def for_user_query(user, opts \\ []) do
|
||||||
query =
|
query =
|
||||||
Notification
|
Notification
|
||||||
|> where(user_id: ^user.id)
|
|> where(user_id: ^user.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user