Merge branch 'develop' into a1batross-develop-patch-62810
[akkoma] / lib / pleroma / web / mastodon_api / views / account_view.ex
index da1221d477cdcaab9dd2315389afaba161e82b6d..63417142f79d6c256e907d7deb47dff8509e1c07 100644 (file)
@@ -376,7 +376,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
   defp maybe_put_allow_following_move(data, _, _), do: data
 
   defp maybe_put_activation_status(data, user, %User{is_admin: true}) do
-    Kernel.put_in(data, [:pleroma, :deactivated], user.deactivated)
+    Kernel.put_in(data, [:pleroma, :deactivated], !user.is_active)
   end
 
   defp maybe_put_activation_status(data, _, _), do: data