diff options
author | marcin mikołajczak <me@mkljczk.pl> | 2024-09-14 17:46:09 +0000 |
---|---|---|
committer | marcin mikołajczak <me@mkljczk.pl> | 2024-09-14 17:46:09 +0000 |
commit | 0111659a1f8e637b046c905551d7d5251d6c2efa (patch) | |
tree | f84b43becfd45898ebad02eb7afe789ef7337c77 /test | |
parent | abf38b405d8d517269adc88564756ffd34f11297 (diff) | |
parent | 6d5ae4d2e91f8ea75115c0ffcdd1d94a24c9dc31 (diff) | |
download | pleroma-0111659a1f8e637b046c905551d7d5251d6c2efa.tar.gz pleroma-0111659a1f8e637b046c905551d7d5251d6c2efa.zip |
Merge branch 'list-id-visibility' into 'develop'
Include list id in StatusView
See merge request pleroma/pleroma!4246
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 |