1
0
mirror of https://git.pleroma.social/sjw/pleroma.git synced 2024-11-17 23:26:31 +01:00

Refactor lib/pleroma/web/twitter_api/twitter_api.ex

This commit is contained in:
dtluna 2017-04-08 17:19:57 +03:00
parent 8f43992121
commit 57795f7332

View File

@ -25,6 +25,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
content_html = add_user_links(content, mentions)
date = make_date
activity = %{
"type" => "Create",
"to" => to,
@ -33,11 +35,11 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
"type" => "Note",
"to" => to,
"content" => content_html,
"published" => make_date,
"published" => date,
"context" => context,
"attachment" => attachments
},
"published" => make_date,
"published" => date,
"context" => context
}