Browse Source

Linting.

stable^2
lain 4 months ago
parent
commit
7dac83eb6e
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      lib/pleroma/web/mastodon_api/controllers/status_controller.ex

+ 8
- 7
lib/pleroma/web/mastodon_api/controllers/status_controller.ex View File

@ -421,13 +421,14 @@ defmodule Pleroma.Web.MastodonAPI.StatusController do
end
# Deactivated for 2.3.0
# defp put_application(params, %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
# if user.disclose_client do
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
# else
# Map.put(params, :generator, nil)
# end
# defp put_application(params,
# %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
# if user.disclose_client do
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
# else
# Map.put(params, :generator, nil)
# end
# end
defp put_application(params, _), do: Map.put(params, :generator, nil)


Loading…
Cancel
Save