- Actually use preloaded bookmarks in views
- Preload bookmarks in bookmark timeline - Rework bookmark preload tests
This commit is contained in:
parent
f841eb7cdb
commit
3a7c14645e
6 changed files with 77 additions and 28 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue