Refactor lib/pleroma/web/twitter_api/twitter_api.ex
This commit is contained in:
parent
8f43992121
commit
57795f7332
1 changed files with 4 additions and 2 deletions
|
@ -25,6 +25,8 @@ def create_status(user = %User{}, data = %{}) do
|
|||
|
||||
content_html = add_user_links(content, mentions)
|
||||
|
||||
date = make_date
|
||||
|
||||
activity = %{
|
||||
"type" => "Create",
|
||||
"to" => to,
|
||||
|
@ -33,11 +35,11 @@ def create_status(user = %User{}, data = %{}) do
|
|||
"type" => "Note",
|
||||
"to" => to,
|
||||
"content" => content_html,
|
||||
"published" => make_date,
|
||||
"published" => date,
|
||||
"context" => context,
|
||||
"attachment" => attachments
|
||||
},
|
||||
"published" => make_date,
|
||||
"published" => date,
|
||||
"context" => context
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue