activitypub: relay: chase selective public announce changes
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 17 Jan 2019 23:13:54 +0000 (23:13 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 17 Jan 2019 23:21:31 +0000 (23:21 +0000)
lib/pleroma/web/activity_pub/relay.ex

index abddbc7907b102210cf23e13dbdefb328daf0fbc..c0a52e349ea423460a5c1c9f52e7fba7e376447f 100644 (file)
@@ -40,7 +40,7 @@ defmodule Pleroma.Web.ActivityPub.Relay do
   def publish(%Activity{data: %{"type" => "Create"}} = activity) do
     with %User{} = user <- get_actor(),
          %Object{} = object <- Object.normalize(activity.data["object"]["id"]) do
-      ActivityPub.announce(user, object)
+      ActivityPub.announce(user, object, nil, true, false)
     else
       e -> Logger.error("error: #{inspect(e)}")
     end