projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a69ece
)
Adjust delete activity audience to match the deleted object
author
Karen Konou
<konoukaren@gmail.com>
Thu, 7 Mar 2019 11:26:03 +0000
(12:26 +0100)
committer
Karen Konou
<konoukaren@gmail.com>
Thu, 7 Mar 2019 11:26:03 +0000
(12:26 +0100)
lib/pleroma/web/activity_pub/activity_pub.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/activity_pub/activity_pub.ex
b/lib/pleroma/web/activity_pub/activity_pub.ex
index 98639883e071d2eb6462ccccc69a929abbedb63e..adb42b9abe6c2c2f5b6e2a16627a88fdac570285 100644
(file)
--- a/
lib/pleroma/web/activity_pub/activity_pub.ex
+++ b/
lib/pleroma/web/activity_pub/activity_pub.ex
@@
-309,16
+309,13
@@
defmodule Pleroma.Web.ActivityPub.ActivityPub do
def delete(%Object{data: %{"id" => id, "actor" => actor}} = object, local \\ true) do
user = User.get_cached_by_ap_id(actor)
-
- to =
- object.data["to"] || [] ++ object.data["cc"] ||
- [] ++ [user.follower_address, "https://www.w3.org/ns/activitystreams#Public"]
+ to = object.data["to"] || [] ++ object.data["cc"] || []
data = %{
"type" => "Delete",
"actor" => actor,
"object" => id,
- "to" =>
Enum.uniq(to)
+ "to" =>
to
}
with {:ok, _} <- Object.delete(object),