Preload thread mutes/bookmarks in user_statuses
authorrinpatch <rinpatch@sdf.org>
Wed, 14 Aug 2019 00:02:09 +0000 (03:02 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 14 Aug 2019 00:02:09 +0000 (03:02 +0300)
lib/pleroma/web/activity_pub/activity_pub.ex

index 1a279a7df1b7f00e06c6ef3120d8f77585221f2d..44ff20af6a2799d69745ccd39d1f94b983d19748 100644 (file)
@@ -623,6 +623,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
     params =
       params
       |> Map.put("type", ["Create", "Announce"])
+      |> Map.put("user", reading_user)
       |> Map.put("actor_id", user.ap_id)
       |> Map.put("whole_db", true)
       |> Map.put("pinned_activity_ids", user.info.pinned_activities)