Pleroma.Web.base_url() --> Endpoint.url()
authorAlex Gleason <alex@alexgleason.me>
Sun, 26 Dec 2021 02:11:14 +0000 (20:11 -0600)
committerAlex Gleason <alex@alexgleason.me>
Sun, 26 Dec 2021 02:11:14 +0000 (20:11 -0600)
test/pleroma/web/o_status/o_status_controller_test.exs

index b243e16921f1c856ba64eb31e7c7e5cf49fa7b67..41aef98b1cb2bba140f7992eee15082870a202f0 100644 (file)
@@ -356,7 +356,7 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest 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 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest 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 @@ defmodule Pleroma.Web.OStatus.OStatusControllerTest 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