Preload thread mutes/bookmarks in user_statuses

This commit is contained in:
rinpatch 2019-08-14 03:02:09 +03:00
parent c3a54cc34d
commit 8202f1634a
1 changed files with 1 additions and 0 deletions

View File

@ -623,6 +623,7 @@ def fetch_user_activities(user, reading_user, params \\ %{}) do
params = params =
params params
|> Map.put("type", ["Create", "Announce"]) |> Map.put("type", ["Create", "Announce"])
|> Map.put("user", reading_user)
|> Map.put("actor_id", user.ap_id) |> Map.put("actor_id", user.ap_id)
|> Map.put("whole_db", true) |> Map.put("whole_db", true)
|> Map.put("pinned_activity_ids", user.info.pinned_activities) |> Map.put("pinned_activity_ids", user.info.pinned_activities)