1
0
Fork 0
forked from mirrors/akkoma

activitypub: transmogrifier: do not clobber the addressing on relayed announcements

This commit is contained in:
William Pitcock 2019-01-17 23:19:15 +00:00
parent 33b473cc02
commit dbc4e92509

View file

@ -451,7 +451,8 @@ def handle_incoming(
with actor <- get_actor(data),
%User{} = actor <- User.get_or_fetch_by_ap_id(actor),
{:ok, object} <- get_obj_helper(object_id) || fetch_obj_helper(object_id),
{:ok, activity, _object} <- ActivityPub.announce(actor, object, id, false) do
public <- ActivityPub.is_public?(data),
{:ok, activity, _object} <- ActivityPub.announce(actor, object, id, false, public) do
{:ok, activity}
else
_e -> :error