diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-14 13:50:43 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-10-14 13:50:43 +0700 |
commit | 1d46944fbd17d194d744230cd519d1410e821a47 (patch) | |
tree | 3b3b34e0066f69bad990ddea8fad8edd76b560f6 /lib | |
parent | 059005ff829c0313c62ddf5fbcd95f8892920228 (diff) | |
download | pleroma-1d46944fbd17d194d744230cd519d1410e821a47.tar.gz |
Do not add `follower_address` to `following` for non local users
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/following_relationship.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/following_relationship.ex b/lib/pleroma/following_relationship.ex index 0d789b5a6..2ffac17ee 100644 --- a/lib/pleroma/following_relationship.ex +++ b/lib/pleroma/following_relationship.ex @@ -101,7 +101,7 @@ defmodule Pleroma.FollowingRelationship do |> select([r, u], u.follower_address) |> Repo.all() - if user.nickname in [nil, "internal.fetch"] do + if not user.local or user.nickname in [nil, "internal.fetch"] do following else [user.follower_address | following] |