summaryrefslogtreecommitdiff
path: root/test/web/mastodon_api
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-05-04 13:42:54 +0300
committerWilliam Pitcock <nenolod@dereferenced.org>2019-05-07 19:33:22 +0000
commit3a7c14645ed726bd6b7deb6489ec0578c4d8cd79 (patch)
treeedb71ee2487ea352d2d06a3747d0682b987e2639 /test/web/mastodon_api
parentf841eb7cdb83afc444dfe260581b6be6e690a717 (diff)
downloadpleroma-3a7c14645ed726bd6b7deb6489ec0578c4d8cd79.tar.gz
pleroma-3a7c14645ed726bd6b7deb6489ec0578c4d8cd79.zip
- Actually use preloaded bookmarks in views
- Preload bookmarks in bookmark timeline - Rework bookmark preload tests
Diffstat (limited to 'test/web/mastodon_api')
-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