Don't deliver to local followers.
This commit is contained in:
parent
df73a9c6d6
commit
2b5d265954
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ def make_user_from_nickname(nickname) do
|
||||||
def publish(actor, activity) do
|
def publish(actor, activity) do
|
||||||
followers = if actor.follower_address in activity.recipients do
|
followers = if actor.follower_address in activity.recipients do
|
||||||
{:ok, followers} = User.get_followers(actor)
|
{:ok, followers} = User.get_followers(actor)
|
||||||
followers
|
followers |> Enum.filter(&(!&1.local))
|
||||||
else
|
else
|
||||||
[]
|
[]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue