Fix OGP provider tests
authorrinpatch <rinpatch@sdf.org>
Fri, 25 Jan 2019 07:51:06 +0000 (10:51 +0300)
committerrinpatch <rinpatch@sdf.org>
Fri, 25 Jan 2019 07:51:06 +0000 (10:51 +0300)
test/web/metadata/opengraph_test.exs

index c3502bad307d11092c8578f681c139e29603a02a..4283f72cdf22b588cef6619c8180f1c210ed43f3 100644 (file)
@@ -48,7 +48,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
         }
       })
 
-    result = OpenGraph.build_tags(%{object: note, user: user})
+    result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
 
     assert Enum.all?(
              [
@@ -85,7 +85,7 @@ defmodule Pleroma.Web.Metadata.Providers.OpenGraphTest do
         }
       })
 
-    result = OpenGraph.build_tags(%{object: note, user: user})
+    result = OpenGraph.build_tags(%{object: note, url: note.data["id"], user: user})
 
     assert {:meta, [property: "og:image", content: "https://pleroma.gov/tenshi.png"], []} in result