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
6877d7aa
Commit
6877d7aa
authored
Sep 17, 2017
by
lain
Browse files
Fix typo.
parent
255a6817
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/twitter_api_controller.ex
View file @
6877d7aa
...
...
@@ -15,7 +15,7 @@ def verify_credentials(%{assigns: %{user: user}} = conn, _params) do
def
status_update
(%{
assigns:
%{
user:
user
}}
=
conn
,
%{
"status"
=>
status_text
}
=
status_data
)
do
with
media_ids
<-
extract_media_ids
(
status_data
),
{
:ok
,
activity
}
=
TwitterAPI
.
create_status
(
user
,
Map
.
put
(
status_data
,
"media_ids"
,
media_ids
))
do
{
:ok
,
activity
}
<-
TwitterAPI
.
create_status
(
user
,
Map
.
put
(
status_data
,
"media_ids"
,
media_ids
))
do
conn
|>
json
(
ActivityRepresenter
.
to_map
(
activity
,
%{
user:
user
}))
else
...
...
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