Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Hakaba Hitoyo
pleroma
Commits
b72d32f5
Commit
b72d32f5
authored
Dec 25, 2018
by
hakabahitoyo
Browse files
[3.distsn.org specific] Skip ActivityPub destination validation. See also #473, #461
parent
03a71eba
Pipeline
#5707
failed with stages
in 8 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/transmogrifier.ex
View file @
b72d32f5
...
...
@@ -50,18 +50,7 @@ def contain_origin(id, %{"actor" => _actor} = params) do
end
end
def
contain_origin_from_id
(
_id
,
%{
"id"
=>
nil
}),
do
:
:error
def
contain_origin_from_id
(
id
,
%{
"id"
=>
other_id
}
=
_params
)
do
id_uri
=
URI
.
parse
(
id
)
other_uri
=
URI
.
parse
(
other_id
)
if
id_uri
.
host
==
other_uri
.
host
do
:ok
else
:error
end
end
def
contain_origin_from_id
(
_id
,
_params
),
do
:
:ok
@doc
"""
Modifies an incoming AP object (mastodon format) to our internal format.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment