projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
802d249
)
Fetcher: fix local check returning unwrapped object
author
rinpatch
<rinpatch@sdf.org>
Wed, 6 Nov 2019 22:40:55 +0000
(
01:40
+0300)
committer
rinpatch
<rinpatch@sdf.org>
Wed, 6 Nov 2019 22:40:55 +0000
(
01:40
+0300)
This resulted in error messages about failed refetches being logged.
lib/pleroma/object/fetcher.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/object/fetcher.ex
b/lib/pleroma/object/fetcher.ex
index 3bcbd3aea6d2ac1c9c72a5f2893c2e9c3332a225..9a9a4655005d5ab8dcb21511e11ebda5ca7d73a7 100644
(file)
--- a/
lib/pleroma/object/fetcher.ex
+++ b/
lib/pleroma/object/fetcher.ex
@@
-54,7
+54,7
@@
defmodule Pleroma.Object.Fetcher do
{:ok, object} <- reinject_object(object, data) do
{:ok, object}
else
- {:local, true} ->
object
+ {:local, true} ->
{:ok, object}
e -> {:error, e}
end
end