mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-18 04:49:23 +00:00
Refactor lib/pleroma/web/twitter_api/twitter_api.ex
This commit is contained in:
parent
8f43992121
commit
57795f7332
|
@ -25,6 +25,8 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
||||||
|
|
||||||
content_html = add_user_links(content, mentions)
|
content_html = add_user_links(content, mentions)
|
||||||
|
|
||||||
|
date = make_date
|
||||||
|
|
||||||
activity = %{
|
activity = %{
|
||||||
"type" => "Create",
|
"type" => "Create",
|
||||||
"to" => to,
|
"to" => to,
|
||||||
|
@ -33,11 +35,11 @@ defmodule Pleroma.Web.TwitterAPI.TwitterAPI do
|
||||||
"type" => "Note",
|
"type" => "Note",
|
||||||
"to" => to,
|
"to" => to,
|
||||||
"content" => content_html,
|
"content" => content_html,
|
||||||
"published" => make_date,
|
"published" => date,
|
||||||
"context" => context,
|
"context" => context,
|
||||||
"attachment" => attachments
|
"attachment" => attachments
|
||||||
},
|
},
|
||||||
"published" => make_date,
|
"published" => date,
|
||||||
"context" => context
|
"context" => context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue