Skip to content
Snippets Groups Projects
Commit 03e92977 authored by kaniini's avatar kaniini
Browse files

transmogrifier: fix peertube/plume actor handling

parent 303af9ba
Branches security/activitypub-spoofing
No related tags found
No related merge requests found
......@@ -33,9 +33,9 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
@doc """
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)
actor_uri = URI.parse(actor)
actor_uri = URI.parse(get_actor(params))
if id_uri.host == actor_uri.host do
:ok
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment