Переглянути джерело

[#1304] Analysis issue fix.

environments/review-fix-dokku-evrk7p/deployments/949
Ivan Tashkinov 4 роки тому
джерело
коміт
b4cbf0568b
1 змінених файлів з 2 додано та 2 видалено
  1. +2
    -2
      lib/pleroma/user.ex

+ 2
- 2
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


Завантаження…
Відмінити
Зберегти