favourites add bookmark display
authorAlex S <alex.strizhakov@gmail.com>
Sun, 14 Apr 2019 14:42:18 +0000 (21:42 +0700)
committerAlex S <alex.strizhakov@gmail.com>
Thu, 25 Apr 2019 06:38:24 +0000 (13:38 +0700)
lib/pleroma/web/mastodon_api/mastodon_api_controller.ex

index a93aa6ad5aa433d02a18c630a4e5d44fc63f75c6..4f8af32c3a0d69ce789a62b452fbf63f6e9bfcab 100644 (file)
@@ -1093,6 +1093,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
       ActivityPub.fetch_activities([], params)
       |> Enum.reverse()
 
+    user = Repo.preload(user, :bookmarks)
+
     conn
     |> add_link_headers(:favourites, activities)
     |> put_view(StatusView)