Fix credo issues

This commit is contained in:
rinpatch 2019-07-31 14:20:34 +03:00
parent c88a5d3251
commit f42719506c
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ def fetch_follow_information(user) do
end end
def update_follower_count(%User{} = user) do 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 = follower_count_query =
User.Query.build(%{followers: user, deactivated: false}) User.Query.build(%{followers: user, deactivated: false})
|> select([u], %{count: count(u.id)}) |> select([u], %{count: count(u.id)})