Fix delivery to CC.
This commit is contained in:
parent
8567feed47
commit
deaad6d97a
2 changed files with 4 additions and 3 deletions
|
|
@ -280,10 +280,10 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
|
|||
def publish(actor, activity) do
|
||||
{:ok, followers} = User.get_followers(actor)
|
||||
|
||||
remote_inboxes = Pleroma.Web.Salmon.remote_users(activity) ++ followers
|
||||
remote_inboxes = (Pleroma.Web.Salmon.remote_users(activity) ++ followers)
|
||||
|> Enum.filter(fn (user) -> User.ap_enabled?(user) end)
|
||||
|> Enum.map(fn (%{info: %{"source_data" => data}}) ->
|
||||
(data["endpoints"] && data["endpoints"]["sharedInbox"]) ||data["inbox"]
|
||||
(data["endpoints"] && data["endpoints"]["sharedInbox"]) || data["inbox"]
|
||||
end)
|
||||
|> Enum.uniq
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue