Commit 2b5d2659 authored by lambda's avatar lambda

Don't deliver to local followers.

parent df73a9c6
Pipeline #837 failed with stage
in 2 minutes and 16 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment