Don't deliver to local followers.
authorlain <lain@soykaf.club>
Sat, 24 Feb 2018 18:04:56 +0000 (19:04 +0100)
committerlain <lain@soykaf.club>
Sat, 24 Feb 2018 18:04:56 +0000 (19:04 +0100)
lib/pleroma/web/activity_pub/activity_pub.ex

index c27ec2c6b9fc035c597be1e17c40cc3fcf6c507d..a2f8ada9c3cd906f7491a637ae7c6749b3b88e20 100644 (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