summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex6
-rw-r--r--lib/pleroma/workers/remote_fetcher_worker.ex8
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index a42b4844e..90c4274f2 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -123,9 +123,9 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
Logger.error("Publisher failed to inbox #{inbox} with status #{code}")
case response do
- %{status: 403} -> {:discard, :forbidden}
- %{status: 404} -> {:discard, :not_found}
- %{status: 410} -> {:discard, :not_found}
+ %{status: 403} -> {:cancel, :forbidden}
+ %{status: 404} -> {:cancel, :not_found}
+ %{status: 410} -> {:cancel, :not_found}
_ -> {:error, e}
end
diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex
index debbbe012..6d777ae94 100644
--- a/lib/pleroma/workers/remote_fetcher_worker.ex
+++ b/lib/pleroma/workers/remote_fetcher_worker.ex
@@ -14,16 +14,16 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do
:ok
{:rejected, reason} ->
- {:discard, reason}
+ {:cancel, reason}
{:error, :forbidden} ->
- {:discard, :forbidden}
+ {:cancel, :forbidden}
{:error, :not_found} ->
- {:discard, :not_found}
+ {:cancel, :not_found}
{:error, :allowed_depth} ->
- {:discard, :allowed_depth}
+ {:cancel, :allowed_depth}
{:error, _} = e ->
e