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
Pleroma
pleroma
Commits
4db1bc2c
Commit
4db1bc2c
authored
Sep 30, 2018
by
kaniini
Browse files
activitypub: fix error condition match
parent
dbc9feec
Pipeline
#3900
passed with stages
in 6 minutes and 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/activity_pub/activity_pub.ex
View file @
4db1bc2c
...
...
@@ -756,7 +756,7 @@ def fetch_object_from_id(id) do
{
:ok
,
activity
}
<-
Transmogrifier
.
handle_incoming
(
params
)
do
{
:ok
,
Object
.
normalize
(
activity
.
data
[
"object"
])}
else
{
:reject
,
nil
}
->
{
:error
,
{
:reject
,
nil
}
}
->
{
:reject
,
nil
}
object
=
%
Object
{}
->
...
...
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