aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2019-07-14 22:04:55 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2019-07-14 22:04:55 +0300
commit168dc97c37f274b258b04eb7e883640b84259714 (patch)
treecde8dad8dcc9d56da58d3ab780d786abde2a1027 /lib
parentc729883936c7d258cb670929af9577aec3e22851 (diff)
downloadpleroma-168dc97c37f274b258b04eb7e883640b84259714.tar.gz
Make opts optional in Pleroma.Notification.for_user_query/2
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/notification.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
index f680fe049..04bbfa0df 100644
--- a/lib/pleroma/notification.ex
+++ b/lib/pleroma/notification.ex
@@ -33,7 +33,7 @@ defmodule Pleroma.Notification do
|> cast(attrs, [:seen])
end
- def for_user_query(user, opts) do
+ def for_user_query(user, opts \\ []) do
query =
Notification
|> where(user_id: ^user.id)