From: Ariadne Conill Date: Fri, 18 Oct 2019 15:39:15 +0000 (+0000) Subject: object: containment: simplify the pattern match for OStatus testsuite hack X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=44e64af5e76e1ace82aa66973da883e334ebfc93;p=akkoma object: containment: simplify the pattern match for OStatus testsuite hack --- diff --git a/lib/pleroma/object/containment.ex b/lib/pleroma/object/containment.ex index 1beb9c83d..68535c09e 100644 --- a/lib/pleroma/object/containment.ex +++ b/lib/pleroma/object/containment.ex @@ -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