diff options
author | William Pitcock <nenolod@dereferenced.org> | 2019-02-04 19:03:25 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2019-02-04 19:03:54 +0000 |
commit | 7d110be1195dad6f96c8e41ee233daf4563994e3 (patch) | |
tree | 4abe27de30300026a4b44203f90444b9e22b9bdd | |
parent | 64a3993425a062842a6affc7a6faa81c194c5e2b (diff) | |
download | pleroma-7d110be1195dad6f96c8e41ee233daf4563994e3.tar.gz |
activitypub: mrf: tag policy: fix force-unlisted and sandbox actions
-rw-r--r-- | lib/pleroma/web/activity_pub/mrf/tag_policy.ex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/mrf/tag_policy.ex b/lib/pleroma/web/activity_pub/mrf/tag_policy.ex index 901a0f2b0..b242e44e6 100644 --- a/lib/pleroma/web/activity_pub/mrf/tag_policy.ex +++ b/lib/pleroma/web/activity_pub/mrf/tag_policy.ex @@ -50,10 +50,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.TagPolicy do cc = List.delete(cc, user.follower_address) ++ ["https://www.w3.org/ns/activitystreams#Public"] + object = + message["object"] + |> Map.put("to", to) + |> Map.put("cc", cc) + message = message |> Map.put("to", to) |> Map.put("cc", cc) + |> Map.put("object", object) {:ok, message} else @@ -74,10 +80,16 @@ defmodule Pleroma.Web.ActivityPub.MRF.TagPolicy do cc = List.delete(cc, "https://www.w3.org/ns/activitystreams#Public") + object = + message["object"] + |> Map.put("to", to) + |> Map.put("cc", cc) + message = message |> Map.put("to", to) |> Map.put("cc", cc) + |> Map.put("object", object) {:ok, message} else |