Merge remote-tracking branch 'origin/develop' into activity-pub-use-atoms-as-keys
[akkoma] / lib / pleroma / web / controller_helper.ex
index 9414cf3f24377414bf55e6cc90e92cbc482c1bca..5d67d75b5fd09bdb5d0cf793e9be5c3abfeccc3d 100644 (file)
@@ -93,8 +93,7 @@ defmodule Pleroma.Web.ControllerHelper do
   end
 
   def assign_account_by_id(conn, _) do
-    # TODO: use `conn.params[:id]` only after moving to OpenAPI
-    case Pleroma.User.get_cached_by_id(conn.params[:id] || conn.params["id"]) do
+    case Pleroma.User.get_cached_by_id(conn.params.id) do
       %Pleroma.User{} = account -> assign(conn, :account, account)
       nil -> Pleroma.Web.MastodonAPI.FallbackController.call(conn, {:error, :not_found}) |> halt()
     end