Commit 7d110be1 authored by William Pitcock's avatar William Pitcock

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

parent 64a39934
Pipeline #7044 passed with stages
in 3 minutes and 46 seconds
......@@ -50,10 +50,16 @@ defp process_tag(
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 @@ defp process_tag(
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment