Do not add follower_address
to following
for non local users
This commit is contained in:
parent
059005ff82
commit
1d46944fbd
@ -101,7 +101,7 @@ defmodule Pleroma.FollowingRelationship do
|
|||||||
|> select([r, u], u.follower_address)
|
|> select([r, u], u.follower_address)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
|
|
||||||
if user.nickname in [nil, "internal.fetch"] do
|
if not user.local or user.nickname in [nil, "internal.fetch"] do
|
||||||
following
|
following
|
||||||
else
|
else
|
||||||
[user.follower_address | following]
|
[user.follower_address | following]
|
||||||
|
@ -243,7 +243,7 @@ defmodule Pleroma.UserTest do
|
|||||||
|
|
||||||
user = User.get_cached_by_id(user.id)
|
user = User.get_cached_by_id(user.id)
|
||||||
|
|
||||||
assert User.following(user) == [user.follower_address]
|
assert User.following(user) == []
|
||||||
end
|
end
|
||||||
|
|
||||||
test "unfollow takes a user and another user" do
|
test "unfollow takes a user and another user" do
|
||||||
|
Loading…
Reference in New Issue
Block a user