diff options
| -rw-r--r-- | lib/pleroma/web/activity_pub/activity_pub.ex | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index fb33f2e3e..168653035 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -283,7 +283,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do    end    def publish(actor, activity) do -    {:ok, followers} = User.get_followers(actor) +    followers = if user.follower_address in activity.recipients do +      {:ok, followers} = User.get_followers(actor) +      followers +    else +      [] +    end      remote_inboxes = (Pleroma.Web.Salmon.remote_users(activity) ++ followers)      |> Enum.filter(fn (user) -> User.ap_enabled?(user) end) | 
