Commit 2b5d2659 authored by lain's avatar lain

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 |> Enum.filter(&(!&1.local))
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