Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
57795f73
Commit
57795f73
authored
Apr 08, 2017
by
dtluna
Browse files
Refactor lib/pleroma/web/twitter_api/twitter_api.ex
parent
8f439921
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/twitter_api.ex
View file @
57795f73
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment