aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-10-18 03:26:50 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-10-18 14:50:10 +0000
commitbf2107743ffcd3b7b9c32c49242f1dfd89dcfdb6 (patch)
treeca48c162c937b7697761f8c7355a5e9e471393a4 /lib
parent85ddcaf418bd24722ea222e0fe19d538675ee784 (diff)
downloadpleroma-bf2107743ffcd3b7b9c32c49242f1dfd89dcfdb6.tar.gz
object: containment: don't try to contain ostatus objects
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/object/containment.ex4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/pleroma/object/containment.ex b/lib/pleroma/object/containment.ex
index f077a9f32..cd8623821 100644
--- a/lib/pleroma/object/containment.ex
+++ b/lib/pleroma/object/containment.ex
@@ -57,7 +57,9 @@ defmodule Pleroma.Object.Containment do
id_uri = URI.parse(id)
other_uri = URI.parse(other_id)
- if id_uri.host == other_uri.host do
+ # We explicitly allow 'tag' URIs through, due to legacy OStatus objects
+ # being present in the ActivityPub network.
+ if id_uri.host == other_uri.host || other_uri.scheme == "tag" do
:ok
else
:error