override actor
This commit is contained in:
parent
cb138abc08
commit
185b480b12
|
@ -29,6 +29,8 @@ defmodule Vonbraun.ActivityPub.Object do
|
||||||
|
|
||||||
copy_recipients? = Keyword.get(options, :copy_recipients, false)
|
copy_recipients? = Keyword.get(options, :copy_recipients, false)
|
||||||
|
|
||||||
|
actor_id = Keyword.get(options, :actor, my_id())
|
||||||
|
|
||||||
object =
|
object =
|
||||||
if is_map(object) && copy_recipients? do
|
if is_map(object) && copy_recipients? do
|
||||||
Map.merge(object, %{"to" => to, "cc" => cc})
|
Map.merge(object, %{"to" => to, "cc" => cc})
|
||||||
|
@ -44,7 +46,7 @@ defmodule Vonbraun.ActivityPub.Object do
|
||||||
"bcc" => [],
|
"bcc" => [],
|
||||||
"bto" => [],
|
"bto" => [],
|
||||||
"type" => type,
|
"type" => type,
|
||||||
"actor" => my_id(),
|
"actor" => actor_id,
|
||||||
"object" => object
|
"object" => object
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue