fix format
authorEgor Kislitsyn <egor@kislitsyn.com>
Thu, 11 Apr 2019 10:28:12 +0000 (17:28 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Thu, 11 Apr 2019 10:28:12 +0000 (17:28 +0700)
lib/pleroma/user.ex

index c08d3a171711af43f3077cdd51c2e287dd171297..a8e902bf35c32cfa33568b705b7787ba3cd46527 100644 (file)
@@ -1150,7 +1150,6 @@ defmodule Pleroma.User do
     )
   end
 
-
   def deactivate_async(user, status \\ true) do
     PleromaJobQueue.enqueue(:user, __MODULE__, [:deactivate_async, user, status])
   end
@@ -1160,11 +1159,12 @@ defmodule Pleroma.User do
   def deactivate(%User{} = user, status \\ true) do
     info_cng = User.Info.set_activation_status(user.info, status)
 
-    with {:ok, user} <- user
-    |> change()
-    |> put_embed(:info, info_cng)
-    |> update_and_set_cache(),
-    {:ok, friends} <- User.get_friends(user) do
+    with {:ok, user} <-
+           user
+           |> change()
+           |> put_embed(:info, info_cng)
+           |> update_and_set_cache(),
+         {:ok, friends} <- User.get_friends(user) do
       Enum.each(friends, &update_follower_count(&1))
       {:ok, user}
     end