From: rinpatch Date: Wed, 6 Nov 2019 22:40:55 +0000 (+0300) Subject: Fetcher: fix local check returning unwrapped object X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=32afa07995997d6ac8e0bbc7a16bfea8f3eeeed4;p=akkoma Fetcher: fix local check returning unwrapped object This resulted in error messages about failed refetches being logged. --- diff --git a/lib/pleroma/object/fetcher.ex b/lib/pleroma/object/fetcher.ex index 3bcbd3aea..9a9a46550 100644 --- 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