1
0
Fork 0
forked from mirrors/akkoma

Pleroma.Web.base_url() --> Endpoint.url()

This commit is contained in:
Alex Gleason 2021-12-25 20:11:14 -06:00
parent db2bf55e9b
commit 2c06eff519
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -356,7 +356,7 @@ test "Soapbox FE", %{conn: conn} do
|> response(200)
expected =
"<meta content=\"#{Pleroma.Web.base_url()}/notice/#{note_activity.id}\" property=\"og:url\">"
"<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">"
assert resp =~ expected
end
@ -372,7 +372,7 @@ test "Mastodon", %{conn: conn} do
|> response(200)
expected =
"<meta content=\"#{Pleroma.Web.base_url()}/notice/#{note_activity.id}\" property=\"og:url\">"
"<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">"
assert resp =~ expected
end
@ -388,7 +388,7 @@ test "Twitter", %{conn: conn} do
|> response(200)
expected =
"<meta content=\"#{Pleroma.Web.base_url()}/notice/#{note_activity.id}\" property=\"og:url\">"
"<meta content=\"#{Endpoint.url()}/notice/#{note_activity.id}\" property=\"og:url\">"
assert resp =~ expected
end