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
a25adfbf
Commit
a25adfbf
authored
Apr 25, 2017
by
lain
Browse files
Remove superflous function.
parent
6529cab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/twitter_api_controller.ex
View file @
a25adfbf
...
...
@@ -12,10 +12,6 @@ def verify_credentials(%{assigns: %{user: user}} = conn, _params) do
|>
json_reply
(
200
,
response
)
end
def
status_update
(
conn
,
%{
"status"
=>
""
}
=
_status_data
)
do
empty_status_reply
(
conn
)
end
def
status_update
(%{
assigns:
%{
user:
user
}}
=
conn
,
%{
"status"
=>
status_text
}
=
status_data
)
do
if
status_text
|>
String
.
trim
|>
String
.
length
!=
0
do
media_ids
=
extract_media_ids
(
status_data
)
...
...
Write
Preview
Markdown
is supported
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