projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c729883
)
Make opts optional in Pleroma.Notification.for_user_query/2
author
Roman Chvanikov
<chvanikoff@pm.me>
Sun, 14 Jul 2019 19:04:55 +0000
(22:04 +0300)
committer
Roman Chvanikov
<chvanikoff@pm.me>
Sun, 14 Jul 2019 19:04:55 +0000
(22:04 +0300)
lib/pleroma/notification.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/notification.ex
b/lib/pleroma/notification.ex
index f680fe049654871af27bf68fb87157f7dc7d1df5..04bbfa0df0383b82e2268fdc4a40ec2fda2adb07 100644
(file)
--- 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)