diff --git a/lib/vonbraun/activity_pub/object.ex b/lib/vonbraun/activity_pub/object.ex index 4d0fc63..3f675d6 100644 --- a/lib/vonbraun/activity_pub/object.ex +++ b/lib/vonbraun/activity_pub/object.ex @@ -29,6 +29,8 @@ defmodule Vonbraun.ActivityPub.Object do copy_recipients? = Keyword.get(options, :copy_recipients, false) + actor_id = Keyword.get(options, :actor, my_id()) + object = if is_map(object) && copy_recipients? do Map.merge(object, %{"to" => to, "cc" => cc}) @@ -44,7 +46,7 @@ defmodule Vonbraun.ActivityPub.Object do "bcc" => [], "bto" => [], "type" => type, - "actor" => my_id(), + "actor" => actor_id, "object" => object } end