mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-23 00:29:36 +01:00
[#1304] Analysis issue fix.
This commit is contained in:
parent
e8843974cb
commit
b4cbf0568b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user