Browse Source

[#1304] Analysis issue fix.

environments/review-fix-dokku-evrk7p/deployments/949
Ivan Tashkinov 4 years ago
parent
commit
b4cbf0568b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      lib/pleroma/user.ex

+ 2
- 2
lib/pleroma/user.ex View File

@@ -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…
Cancel
Save