mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 10:59:17 +00:00
Merge branch 'hotfix/delete-activities' into 'develop'
Fix delete activities not federating See merge request pleroma/pleroma!933
This commit is contained in:
commit
34fc0dca2e
|
@ -310,7 +310,7 @@ def unfollow(follower, followed, activity_id \\ nil, local \\ true) do
|
|||
|
||||
def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ true) do
|
||||
user = User.get_cached_by_ap_id(actor)
|
||||
to = object.data["to"] || [] ++ object.data["cc"] || []
|
||||
to = (object.data["to"] || []) ++ (object.data["cc"] || [])
|
||||
|
||||
with {:ok, object, activity} <- Object.delete(object),
|
||||
data <- %{
|
||||
|
|
Loading…
Reference in a new issue