activitypub: mrf: tag policy: fix force-unlisted and sandbox actions

This commit is contained in:
William Pitcock 2019-02-04 19:03:25 +00:00
parent 64a3993425
commit 7d110be119
1 changed files with 12 additions and 0 deletions

View File

@ -50,10 +50,16 @@ defp process_tag(
cc = cc =
List.delete(cc, user.follower_address) ++ ["https://www.w3.org/ns/activitystreams#Public"] 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 =
message message
|> Map.put("to", to) |> Map.put("to", to)
|> Map.put("cc", cc) |> Map.put("cc", cc)
|> Map.put("object", object)
{:ok, message} {:ok, message}
else else
@ -74,10 +80,16 @@ defp process_tag(
cc = List.delete(cc, "https://www.w3.org/ns/activitystreams#Public") cc = List.delete(cc, "https://www.w3.org/ns/activitystreams#Public")
object =
message["object"]
|> Map.put("to", to)
|> Map.put("cc", cc)
message = message =
message message
|> Map.put("to", to) |> Map.put("to", to)
|> Map.put("cc", cc) |> Map.put("cc", cc)
|> Map.put("object", object)
{:ok, message} {:ok, message}
else else