Fix delivery to CC.

This commit is contained in:
lain 2018-02-18 16:59:41 +01:00
commit deaad6d97a
2 changed files with 4 additions and 3 deletions

View file

@ -138,7 +138,8 @@ defmodule Pleroma.Web.Salmon do
{:ok, salmon}
end
def remote_users(%{data: %{"to" => to}}) do
def remote_users(%{data: %{"to" => to} = data}) do
to = to ++ (data["cc"] || [])
to
|> Enum.map(fn(id) -> User.get_cached_by_ap_id(id) end)
|> Enum.filter(fn(user) -> user && !user.local end)