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
47189531
Commit
47189531
authored
Jun 18, 2018
by
kaniini
Browse files
user: use Object.normalize() instead of Object.get_by_ap_id() directly.
parent
b036a19c
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/pleroma/user.ex
View file @
47189531
...
@@ -607,7 +607,7 @@ def delete(%User{} = user) do
...
@@ -607,7 +607,7 @@ def delete(%User{} = user) do
|>
Enum
.
each
(
fn
activity
->
|>
Enum
.
each
(
fn
activity
->
case
activity
.
data
[
"type"
]
do
case
activity
.
data
[
"type"
]
do
"Create"
->
"Create"
->
ActivityPub
.
delete
(
Object
.
get_by_ap_id
(
activity
.
data
[
"object"
]
[
"id"
]
))
ActivityPub
.
delete
(
Object
.
normalize
(
activity
.
data
[
"object"
]))
# TODO: Do something with likes, follows, repeats.
# TODO: Do something with likes, follows, repeats.
_
->
_
->
...
...
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