1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-12-28 13:55:06 +01:00

Don't deliver to local followers.

This commit is contained in:
lain 2018-02-24 19:04:56 +01:00
parent df73a9c6d6
commit 2b5d265954

View File

@ -314,7 +314,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
def publish(actor, activity) do
followers = if actor.follower_address in activity.recipients do
{:ok, followers} = User.get_followers(actor)
followers
followers |> Enum.filter(&(!&1.local))
else
[]
end