object: containment: simplify the pattern match for OStatus testsuite hack
authorAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 15:39:15 +0000 (15:39 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 15:39:15 +0000 (15:39 +0000)
lib/pleroma/object/containment.ex

index 1beb9c83df370a44b0d8f3cf6c70bfdedca3d5dd..68535c09e66ab962bcbcb5ce91a53303f48b6d0f 100644 (file)
@@ -36,7 +36,7 @@ defmodule Pleroma.Object.Containment do
   # objects being present in the test suite environment.  Once these objects are
   # removed, please also remove this.
   if Mix.env() == :test do
-    defp compare_uris(_, %URI{scheme: "tag" <> _}), do: :ok
+    defp compare_uris(_, %URI{scheme: "tag"}), do: :ok
   end
 
   defp compare_uris(%URI{} = id_uri, %URI{} = other_uri) do