diff options
author | marcin mikołajczak <git@mkljczk.pl> | 2024-09-03 15:17:45 +0200 |
---|---|---|
committer | marcin mikołajczak <git@mkljczk.pl> | 2024-09-03 15:17:45 +0200 |
commit | 6d5ae4d2e91f8ea75115c0ffcdd1d94a24c9dc31 (patch) | |
tree | 0ca7c350c11d259054665cf53c70d8b2782bebb9 /test | |
parent | fecfe8bf89a32ffda0d52106f05b1f2e10d56472 (diff) | |
download | pleroma-6d5ae4d2e91f8ea75115c0ffcdd1d94a24c9dc31.tar.gz pleroma-6d5ae4d2e91f8ea75115c0ffcdd1d94a24c9dc31.zip |
Include list id in StatusView
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/mastodon_api/views/status_view_test.exs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/pleroma/web/mastodon_api/views/status_view_test.exs b/test/pleroma/web/mastodon_api/views/status_view_test.exs index afe0ccb28..bc6dec32a 100644 --- a/test/pleroma/web/mastodon_api/views/status_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/status_view_test.exs @@ -342,7 +342,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do parent_visible: false, pinned_at: nil, quotes_count: 0, - bookmark_folder: nil + bookmark_folder: nil, + list_id: nil } } @@ -912,6 +913,11 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do status = StatusView.render("show.json", activity: activity) assert status.visibility == "list" + assert status.pleroma.list_id == nil + + status = StatusView.render("show.json", activity: activity, for: user) + + assert status.pleroma.list_id == list.id end test "has a field for parent visibility" do |