object: containment: also allow OStatus object IDs through when comparing origins
authorAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 03:56:31 +0000 (03:56 +0000)
committerAriadne Conill <ariadne@dereferenced.org>
Fri, 18 Oct 2019 14:50:10 +0000 (14:50 +0000)
lib/pleroma/object/containment.ex

index cd86238216d91c86dd026bfbcbfde6e846ec2ba2..6a621ac2694369d724f904b05cb057421ffeaf9e 100644 (file)
@@ -41,7 +41,7 @@ defmodule Pleroma.Object.Containment do
     id_uri = URI.parse(id)
     actor_uri = URI.parse(get_actor(params))
 
-    if id_uri.host == actor_uri.host do
+    if id_uri.host == actor_uri.host || id_uri.scheme == "tag" do
       :ok
     else
       :error