From: lain Date: Sat, 24 Feb 2018 18:04:56 +0000 (+0100) Subject: Don't deliver to local followers. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=2b5d2659543e3484973b0eb5eb975f4a9fb298df;p=akkoma Don't deliver to local followers. --- 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