From d23c0762e3edbb02273fa4f19ca456ec6386f1fd Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 7 Nov 2018 19:16:35 +0100 Subject: [PATCH] Remove duplicated bad function Signed-off-by: Thomas Citharel --- lib/service/activity_pub/utils.ex | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/service/activity_pub/utils.ex b/lib/service/activity_pub/utils.ex index d56192de2..d52b62c4a 100644 --- a/lib/service/activity_pub/utils.ex +++ b/lib/service/activity_pub/utils.ex @@ -231,20 +231,6 @@ defmodule Mobilizon.Service.ActivityPub.Utils do end end - def make_create_data(params, additional) do - published = params.published || make_date() - - %{ - "type" => "Create", - "to" => params.to |> Enum.uniq(), - "actor" => params.actor.ap_id, - "object" => params.object, - "published" => published, - "context" => params.context - } - |> Map.merge(additional) - end - def make_like_data(%Actor{url: url} = actor, %{data: %{"id" => id}} = object, activity_id) do data = %{ "type" => "Like",