mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 09:02:28 +00:00
object: containment: don't try to contain ostatus objects
This commit is contained in:
parent
85ddcaf418
commit
bf2107743f
|
@ -57,7 +57,9 @@ defmodule Pleroma.Object.Containment do
|
||||||
id_uri = URI.parse(id)
|
id_uri = URI.parse(id)
|
||||||
other_uri = URI.parse(other_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
|
:ok
|
||||||
else
|
else
|
||||||
:error
|
:error
|
||||||
|
|
Loading…
Reference in a new issue