diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-31 19:37:55 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-31 21:09:13 +0300 |
commit | 301ea0dc0466371032f44f3e936d1b951ed9784c (patch) | |
tree | 2f986005093c7b422675bb17c77f2f6fb0582619 /lib | |
parent | f42719506c539a4058c52d3a6e4a828948ac74ce (diff) | |
download | pleroma-301ea0dc0466371032f44f3e936d1b951ed9784c.tar.gz pleroma-301ea0dc0466371032f44f3e936d1b951ed9784c.zip |
Add tests for counters being updated on follow
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/user.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 7acf1e53c..69835f3dd 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 and Pleroma.Config.get([:instance, :external_user_synchronization]) do + if user.local or !Pleroma.Config.get([:instance, :external_user_synchronization]) do follower_count_query = User.Query.build(%{followers: user, deactivated: false}) |> select([u], %{count: count(u.id)}) |