favourites add bookmark display

This commit is contained in:
Alex S 2019-04-14 21:42:18 +07:00
parent 324c9c8ab5
commit 1258128f4f

View file

@ -1093,6 +1093,8 @@ def favourites(%{assigns: %{user: user}} = conn, params) do
ActivityPub.fetch_activities([], params) ActivityPub.fetch_activities([], params)
|> Enum.reverse() |> Enum.reverse()
user = Repo.preload(user, :bookmarks)
conn conn
|> add_link_headers(:favourites, activities) |> add_link_headers(:favourites, activities)
|> put_view(StatusView) |> put_view(StatusView)