summaryrefslogtreecommitdiff
path: root/test/web
diff options
context:
space:
mode:
authorkaniini <nenolod@gmail.com>2019-05-07 19:37:41 +0000
committerkaniini <nenolod@gmail.com>2019-05-07 19:37:41 +0000
commit14deed7f7d0b88d5c8ac19bb3de467429c289746 (patch)
treee87869cf8a81936954208e5af229b96cfdfc6e58 /test/web
parenta1a0df19c4521bf0073b6bb8dbf8101cf37ebd6b (diff)
parentd64c3b604e4eb5e8dd3f51aff7d1f15024d5fa33 (diff)
downloadpleroma-14deed7f7d0b88d5c8ac19bb3de467429c289746.tar.gz
pleroma-14deed7f7d0b88d5c8ac19bb3de467429c289746.zip
Merge branch 'refactor/preload-bookmarks-with-activities' into 'develop'
Optimize bookmarks by preloading them with activities Closes #861 See merge request pleroma/pleroma!1121
Diffstat (limited to 'test/web')
-rw-r--r--test/web/mastodon_api/status_view_test.exs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index 5fddc6c58..d7c800e83 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -168,6 +168,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
{:ok, _bookmark} = Bookmark.create(user.id, activity.id)
+ activity = Activity.get_by_id_with_object(activity.id)
+
status = StatusView.render("status.json", %{activity: activity, for: user})
assert status.bookmarked == true