File tree Expand file tree Collapse file tree
test/pleroma/web/mastodon_api/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1698,34 +1698,6 @@ defmodule Pleroma.Web.MastodonAPI.StatusControllerTest do
16981698
16991699 assert response_two == card_data
17001700 end
1701-
1702- test "replaces missing description with an empty string" , % { conn: conn , user: user } do
1703- Tesla.Mock . mock_global ( fn env -> apply ( HttpRequestMock , :request , [ env ] ) end )
1704-
1705- { :ok , activity } = CommonAPI . post ( user , % { status: "https://example.com/ogp-missing-data" } )
1706-
1707- response =
1708- conn
1709- |> get ( "/api/v1/statuses/#{ activity . id } /card" )
1710- |> json_response_and_validate_schema ( :ok )
1711-
1712- assert response == % {
1713- "type" => "link" ,
1714- "title" => "Pleroma" ,
1715- "description" => "" ,
1716- "image" => nil ,
1717- "provider_name" => "example.com" ,
1718- "provider_url" => "https://example.com" ,
1719- "url" => "https://example.com/ogp-missing-data" ,
1720- "pleroma" => % {
1721- "opengraph" => % {
1722- "title" => "Pleroma" ,
1723- "type" => "website" ,
1724- "url" => "https://example.com/ogp-missing-data"
1725- }
1726- }
1727- }
1728- end
17291701 end
17301702
17311703 test "bookmarks" do
You can’t perform that action at this time.
0 commit comments