mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Remove duplicated bad function
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
9161df71ba
commit
537736a98e
1 changed files with 0 additions and 14 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue