mirror of
https://git.youjo.love/youjo/youjo-be.git
synced 2025-03-30 07:31:49 +02:00
transmogrifier: fix peertube/plume actor handling
This commit is contained in:
parent
303af9ba4c
commit
03e92977cb
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
|
||||||
@doc """
|
@doc """
|
||||||
Checks that an imported AP object's actor matches the domain it came from.
|
Checks that an imported AP object's actor matches the domain it came from.
|
||||||
"""
|
"""
|
||||||
def contain_origin(id, %{"actor" => actor}) do
|
def contain_origin(id, %{"actor" => actor} = params) do
|
||||||
id_uri = URI.parse(id)
|
id_uri = URI.parse(id)
|
||||||
actor_uri = URI.parse(actor)
|
actor_uri = URI.parse(get_actor(params))
|
||||||
|
|
||||||
if id_uri.host == actor_uri.host do
|
if id_uri.host == actor_uri.host do
|
||||||
:ok
|
:ok
|
||||||
|
|
Loading…
Reference in a new issue