Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pleroma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
379
Issues
379
List
Boards
Labels
Service Desk
Milestones
Merge Requests
56
Merge Requests
56
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pleroma
pleroma
Commits
6f110fc0
Commit
6f110fc0
authored
Oct 18, 2019
by
kaniini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object fetcher: fix up error handling
parent
af9aa8e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/pleroma/object/fetcher.ex
lib/pleroma/object/fetcher.ex
+2
-2
No files found.
lib/pleroma/object/fetcher.ex
View file @
6f110fc0
...
@@ -162,8 +162,8 @@ def fetch_and_contain_remote_object_from_id(id) when is_binary(id) do
...
@@ -162,8 +162,8 @@ def fetch_and_contain_remote_object_from_id(id) when is_binary(id) do
{
:ok
,
%{
status:
code
}}
when
code
in
[
404
,
410
]
->
{
:ok
,
%{
status:
code
}}
when
code
in
[
404
,
410
]
->
{
:error
,
"Object has been deleted"
}
{
:error
,
"Object has been deleted"
}
_
->
e
->
{
:error
,
"Could not fetch by AP id"
}
{
:error
,
e
}
end
end
end
end
...
...
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