Do not add follower_address
to following
for non local users
This commit is contained in:
parent
059005ff82
commit
1d46944fbd
2 changed files with 2 additions and 2 deletions
|
@ -101,7 +101,7 @@ def following(%User{} = user) 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]
|
||||
|
|
|
@ -243,7 +243,7 @@ test "unfollow with syncronizes external user" do
|
|||
|
||||
user = User.get_cached_by_id(user.id)
|
||||
|
||||
assert User.following(user) == [user.follower_address]
|
||||
assert User.following(user) == []
|
||||
end
|
||||
|
||||
test "unfollow takes a user and another user" do
|
||||
|
|
Loading…
Reference in a new issue