From: rinpatch Date: Wed, 31 Jul 2019 11:20:34 +0000 (+0300) Subject: Fix credo issues X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=f42719506c539a4058c52d3a6e4a828948ac74ce;p=akkoma Fix credo issues --- diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index fd1c0a544..7acf1e53c 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -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)})