Commit 44e64af5 authored by kaniini's avatar kaniini

object: containment: simplify the pattern match for OStatus testsuite hack

parent e99fdfc3
Pipeline #18813 failed with stages
in 7 minutes and 9 seconds
......@@ -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
defp compare_uris(%URI{} = id_uri, %URI{} = other_uri) do
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment