Fix delete activities not federating
This commit is contained in:
parent
8e6b850610
commit
e630e5e135
|
@ -309,7 +309,7 @@ def unfollow(follower, followed, activity_id \\ nil, local \\ true) do
|
||||||
|
|
||||||
def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ true) do
|
def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ true) do
|
||||||
user = User.get_cached_by_ap_id(actor)
|
user = User.get_cached_by_ap_id(actor)
|
||||||
to = object.data["to"] || [] ++ object.data["cc"] || []
|
to = (object.data["to"] || []) ++ (object.data["cc"] || [])
|
||||||
|
|
||||||
data = %{
|
data = %{
|
||||||
"type" => "Delete",
|
"type" => "Delete",
|
||||||
|
|
Loading…
Reference in New Issue