forked from AkkomaGang/akkoma
Linting.
This commit is contained in:
parent
7d790bb27b
commit
7dac83eb6e
1 changed files with 8 additions and 7 deletions
|
@ -421,13 +421,14 @@ def bookmarks(%{assigns: %{user: user}} = conn, params) do
|
||||||
end
|
end
|
||||||
|
|
||||||
# Deactivated for 2.3.0
|
# Deactivated for 2.3.0
|
||||||
# defp put_application(params, %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
|
# defp put_application(params,
|
||||||
# if user.disclose_client do
|
# %{assigns: %{token: %Token{user: %User{} = user} = token}} = _conn) do
|
||||||
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
|
# if user.disclose_client do
|
||||||
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
|
# %{client_name: client_name, website: website} = Repo.preload(token, :app).app
|
||||||
# else
|
# Map.put(params, :generator, %{type: "Application", name: client_name, url: website})
|
||||||
# Map.put(params, :generator, nil)
|
# else
|
||||||
# end
|
# Map.put(params, :generator, nil)
|
||||||
|
# end
|
||||||
# end
|
# end
|
||||||
|
|
||||||
defp put_application(params, _), do: Map.put(params, :generator, nil)
|
defp put_application(params, _), do: Map.put(params, :generator, nil)
|
||||||
|
|
Loading…
Reference in a new issue