summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2023-12-29 00:31:05 -0500
committerMark Felder <feld@feld.me>2023-12-29 00:31:05 -0500
commit141702538b7ebdc501425b09928332d345c2b577 (patch)
tree38220e275a0f3745626c0e76afe6a77a9bdd54ab
parent7ebca7ecfa93f41d9eac2dcefa4b2e55f1b0c4ac (diff)
downloadpleroma-141702538b7ebdc501425b09928332d345c2b577.tar.gz
pleroma-141702538b7ebdc501425b09928332d345c2b577.zip
Discard on a 404 as well
-rw-r--r--lib/pleroma/web/activity_pub/publisher.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/publisher.ex b/lib/pleroma/web/activity_pub/publisher.ex
index 1ce920e81..282cc672a 100644
--- a/lib/pleroma/web/activity_pub/publisher.ex
+++ b/lib/pleroma/web/activity_pub/publisher.ex
@@ -124,6 +124,7 @@ defmodule Pleroma.Web.ActivityPub.Publisher do
case response do
%{status: 403} -> {:discard, :forbidden}
+ %{status: 404} -> {:discard, :not_found}
%{status: 410} -> {:discard, :not_found}
_ -> {:error, response}
end