projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e884397
)
[#1304] Analysis issue fix.
author
Ivan Tashkinov
<ivantashkinov@gmail.com>
Sun, 20 Oct 2019 10:58:27 +0000
(13:58 +0300)
committer
Ivan Tashkinov
<ivantashkinov@gmail.com>
Sun, 20 Oct 2019 10:58:27 +0000
(13:58 +0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index d16d221985905e5fa56e1fd519127d83b6bc424e..282cf69622e9ea943a589713bd81a1dd1ed28a53 100644
(file)
--- a/
lib/pleroma/user.ex
+++ b/
lib/pleroma/user.ex
@@
-2014,11
+2014,11
@@
defmodule Pleroma.User do
end
end
- defp set_notification_mutes(user, _muted_notifications,
_notifications? = false
) do
+ defp set_notification_mutes(user, _muted_notifications,
false = _notifications?
) do
{:ok, user}
end
- defp set_notification_mutes(user, muted_notifications,
_notifications? = true
) do
+ defp set_notification_mutes(user, muted_notifications,
true = _notifications?
) do
params = %{muted_notifications: muted_notifications}
user