summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormarcin mikołajczak <me@mkljczk.pl>2024-09-14 17:46:09 +0000
committermarcin mikołajczak <me@mkljczk.pl>2024-09-14 17:46:09 +0000
commit0111659a1f8e637b046c905551d7d5251d6c2efa (patch)
treef84b43becfd45898ebad02eb7afe789ef7337c77 /test
parentabf38b405d8d517269adc88564756ffd34f11297 (diff)
parent6d5ae4d2e91f8ea75115c0ffcdd1d94a24c9dc31 (diff)
downloadpleroma-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.exs8
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