fix api/v1/accounts/update_credentials
[akkoma] / lib / pleroma / web / mastodon_api / controllers / search_controller.ex
index 632c4590f7da8c7bc592fa0c85b35daaa196e0ed..77e2224e43ec3477a02a22390dfbb5e89a5ef5bc 100644 (file)
@@ -33,12 +33,10 @@ defmodule Pleroma.Web.MastodonAPI.SearchController do
 
     conn
     |> put_view(AccountView)
-    # https://git.pleroma.social/pleroma/pleroma-fe/-/issues/838#note_59223
     |> render("index.json",
       users: accounts,
       for: user,
-      as: :user,
-      embed_relationships: ControllerHelper.embed_relationships?(params)
+      as: :user
     )
   end
 
@@ -95,7 +93,6 @@ defmodule Pleroma.Web.MastodonAPI.SearchController do
       users: accounts,
       for: options[:for_user],
       as: :user,
-      # https://git.pleroma.social/pleroma/pleroma-fe/-/issues/838#note_59223
       embed_relationships: options[:embed_relationships]
     )
   end