favourites add bookmark display

This commit is contained in:
Alex S 2019-04-14 21:42:18 +07:00
parent 324c9c8ab5
commit 1258128f4f
1 changed files with 2 additions and 0 deletions

View File

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