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
6a69ece4
Commit
6a69ece4
authored
Mar 07, 2019
by
Karen Konou
Browse files
Revert existing object check
parent
28d5b40d
Pipeline
#8670
passed with stages
in 3 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/activity_pub.ex
View file @
6a69ece4
...
...
@@ -311,14 +311,8 @@ def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ tru
user
=
User
.
get_cached_by_ap_id
(
actor
)
to
=
case
Object
.
get_cached_by_ap_id
(
id
)
do
nil
->
[
user
.
follower_address
,
"https://www.w3.org/ns/activitystreams#Public"
]
object
->
object
.
data
[
"to"
]
||
[]
++
object
.
data
[
"cc"
]
||
[]
++
[
user
.
follower_address
,
"https://www.w3.org/ns/activitystreams#Public"
]
end
object
.
data
[
"to"
]
||
[]
++
object
.
data
[
"cc"
]
||
[]
++
[
user
.
follower_address
,
"https://www.w3.org/ns/activitystreams#Public"
]
data
=
%{
"type"
=>
"Delete"
,
...
...
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