diff options
author | Alex Gleason <alex@alexgleason.me> | 2022-01-26 11:52:50 -0600 |
---|---|---|
committer | Alex Gleason <alex@alexgleason.me> | 2022-01-26 11:52:50 -0600 |
commit | 91822c383c20faf870874eb1812bc1f810b571b0 (patch) | |
tree | c0826536477331eb25b72d4480dc5929a9b138a5 /test | |
parent | 660490c2eca217beac41f0c6e19371c17f5c10d9 (diff) | |
download | pleroma-91822c383c20faf870874eb1812bc1f810b571b0.tar.gz |
StatusView: add `quote_visible` param
Diffstat (limited to 'test')
-rw-r--r-- | test/pleroma/web/mastodon_api/views/status_view_test.exs | 4 |
1 files changed, 4 insertions, 0 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 d40e4fe8e..446ade626 100644 --- a/test/pleroma/web/mastodon_api/views/status_view_test.exs +++ b/test/pleroma/web/mastodon_api/views/status_view_test.exs @@ -282,6 +282,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do in_reply_to_account_acct: nil, quote: nil, quote_url: nil, + quote_visible: false, content: %{"text/plain" => HTML.strip_tags(object_data["content"])}, spoiler_text: %{"text/plain" => HTML.strip_tags(object_data["summary"])}, expires_at: nil, @@ -416,6 +417,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do # The quote isn't rendered refute status.pleroma.quote assert status.pleroma.quote_url == private_object.data["id"] + refute status.pleroma.quote_visible # After following the user, the quote is rendered follower = insert(:user) @@ -423,6 +425,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do status = StatusView.render("show.json", %{activity: quote_private, for: follower}) assert status.pleroma.quote.id == to_string(private.id) + assert status.pleroma.quote_visible end test "quoted direct message" do @@ -439,6 +442,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do # The quote isn't rendered refute status.pleroma.quote assert status.pleroma.quote_url == direct_object.data["id"] + refute status.pleroma.quote_visible end test "contains mentions" do |