- with swap_data_with_tombstone(object),
- Activity.all_non_create_by_object_ap_id_q(id)
- |> Repo.all()
- |> Enum.each(&Activity.swap_data_with_tombstone/1),
+ with {:ok, _obj} = swap_object_with_tombstone(object),
+ Repo.delete_all(Activity.all_non_create_by_object_ap_id_q(id)),