From 2b5d2659543e3484973b0eb5eb975f4a9fb298df Mon Sep 17 00:00:00 2001
From: lain <lain@soykaf.club>
Date: Sat, 24 Feb 2018 19:04:56 +0100
Subject: [PATCH] Don't deliver to local followers.

---
 lib/pleroma/web/activity_pub/activity_pub.ex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex
index c27ec2c6b..a2f8ada9c 100644
--- a/lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/lib/pleroma/web/activity_pub/activity_pub.ex
@@ -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