Fix delivery to CC.
This commit is contained in:
parent
8567feed47
commit
deaad6d97a
2 changed files with 4 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue