activitypub: utils: update the state of *any* pending follow relationship that matche...
[akkoma] / lib / pleroma / web / ostatus / ostatus_controller.ex
index 823619edb5b45cf11b540d0b3b3107634ba16439..297aca2f976948ef18c6a373fb39d19c38416217 100644 (file)
@@ -166,10 +166,13 @@ defmodule Pleroma.Web.OStatus.OStatusController do
       end
     else
       {:public?, false} ->
-        {:error, :not_found}
+        conn
+        |> put_status(404)
+        |> Fallback.RedirectController.redirector(nil, 404)
 
       {:activity, nil} ->
-        {:error, :not_found}
+        conn
+        |> Fallback.RedirectController.redirector(nil, 404)
 
       e ->
         e