Fix credo issues
authorrinpatch <rinpatch@sdf.org>
Wed, 31 Jul 2019 11:20:34 +0000 (14:20 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 31 Jul 2019 11:20:34 +0000 (14:20 +0300)
lib/pleroma/user.ex

index fd1c0a5447faed14ec6c9e7057e8c784ea816844..7acf1e53cbf8192c334d1cd01b321a52298e3fe9 100644 (file)
@@ -741,7 +741,7 @@ defmodule Pleroma.User do
   end
 
   def update_follower_count(%User{} = user) do
-    unless user.local == false and Pleroma.Config.get([:instance, :external_user_synchronization]) do
+    unless !user.local and Pleroma.Config.get([:instance, :external_user_synchronization]) do
       follower_count_query =
         User.Query.build(%{followers: user, deactivated: false})
         |> select([u], %{count: count(u.id)})