projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88a5d3
)
Fix credo issues
author
rinpatch
<rinpatch@sdf.org>
Wed, 31 Jul 2019 11:20:34 +0000
(14:20 +0300)
committer
rinpatch
<rinpatch@sdf.org>
Wed, 31 Jul 2019 11:20:34 +0000
(14:20 +0300)
lib/pleroma/user.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/user.ex
b/lib/pleroma/user.ex
index fd1c0a5447faed14ec6c9e7057e8c784ea816844..7acf1e53cbf8192c334d1cd01b321a52298e3fe9 100644
(file)
--- 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)})