mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-25 04:53:06 +00:00
Fix credo issues
This commit is contained in:
parent
c88a5d3251
commit
f42719506c
|
@ -741,7 +741,7 @@ def fetch_follow_information(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)})
|
||||
|
|
Loading…
Reference in a new issue