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
32a26eb9
Commit
32a26eb9
authored
Apr 18, 2018
by
normandy
Browse files
Fix TwitterAPI.delete call
parent
7b4f5523
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/twitter_api/twitter_api_controller.ex
View file @
32a26eb9
...
...
@@ -150,7 +150,7 @@ def unblock(%{assigns: %{user: user}} = conn, params) do
end
def
delete_post
(%{
assigns:
%{
user:
user
}}
=
conn
,
%{
"id"
=>
id
})
do
with
{
:ok
,
activity
}
<-
TwitterAPI
.
delete
(
id
,
user
)
do
with
{
:ok
,
activity
}
<-
TwitterAPI
.
delete
(
user
,
id
)
do
render
(
conn
,
ActivityView
,
"activity.json"
,
%{
activity:
activity
,
for:
user
})
end
end
...
...
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