Remove MastoFE-related backend code and frontend pieces
[akkoma] / lib / pleroma / web / mastodon_api / controllers / app_controller.ex
index dd3b39c7789db7bc8fb3be29f046568edb4ad7a9..70edbb085ed630942615feb02343102aa98565fa 100644 (file)
@@ -26,9 +26,7 @@ defmodule Pleroma.Web.MastodonAPI.AppController do
   )
 
   plug(Pleroma.Web.ApiSpec.CastAndValidate)
-
-  @local_mastodon_name "Mastodon-Local"
-
+  
   defdelegate open_api_operation(action), to: Pleroma.Web.ApiSpec.AppOperation
 
   @doc "POST /api/v1/apps"
@@ -41,7 +39,6 @@ defmodule Pleroma.Web.MastodonAPI.AppController do
       |> Map.put(:scopes, scopes)
 
     with cs <- App.register_changeset(%App{}, app_attrs),
-         false <- cs.changes[:client_name] == @local_mastodon_name,
          {:ok, app} <- Repo.insert(cs) do
       render(conn, "show.json", app: app)
     end