projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a6a5b3
)
de-group import/s
author
Haelwenn (lanodan) Monnier
<contact@hacktivis.me>
Sat, 9 Feb 2019 15:20:18 +0000
(16:20 +0100)
committer
Haelwenn (lanodan) Monnier
<contact@hacktivis.me>
Sat, 9 Feb 2019 15:31:17 +0000
(16:31 +0100)
lib/pleroma/instances/instance.ex
patch
|
blob
|
history
lib/pleroma/web/oauth/app.ex
patch
|
blob
|
history
lib/pleroma/web/oauth/authorization.ex
patch
|
blob
|
history
lib/pleroma/web/web.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/instances/instance.ex
b/lib/pleroma/instances/instance.ex
index ce3b46d501b467c0762bdf2297389396dfc468df..48bc939dd0958aa5748d46cb09a7d5403a18c87e 100644
(file)
--- a/
lib/pleroma/instances/instance.ex
+++ b/
lib/pleroma/instances/instance.ex
@@
-7,7
+7,8
@@
defmodule Pleroma.Instances.Instance do
use Ecto.Schema
use Ecto.Schema
- import Ecto.{Query, Changeset}
+ import Ecto.Query
+ import Ecto.Changeset
schema "instances" do
field(:host, :string)
schema "instances" do
field(:host, :string)
diff --git
a/lib/pleroma/web/oauth/app.ex
b/lib/pleroma/web/oauth/app.ex
index 967ac04b5d378a366dc65372aae0d436d2b36e1f..3e8acde31cd0117e6c1622c98b41b7a1879b5a7b 100644
(file)
--- a/
lib/pleroma/web/oauth/app.ex
+++ b/
lib/pleroma/web/oauth/app.ex
@@
-4,7
+4,7
@@
defmodule Pleroma.Web.OAuth.App do
use Ecto.Schema
defmodule Pleroma.Web.OAuth.App do
use Ecto.Schema
- import Ecto.
{Changeset}
+ import Ecto.
Changeset
schema "apps" do
field(:client_name, :string)
schema "apps" do
field(:client_name, :string)
diff --git
a/lib/pleroma/web/oauth/authorization.ex
b/lib/pleroma/web/oauth/authorization.ex
index ea742f6786deab65311585f8ad7b6a07d033c799..75c9ab9aa682793b9df17b32297ffd65a5e4475f 100644
(file)
--- a/
lib/pleroma/web/oauth/authorization.ex
+++ b/
lib/pleroma/web/oauth/authorization.ex
@@
-10,7
+10,8
@@
defmodule Pleroma.Web.OAuth.Authorization do
alias Pleroma.Web.OAuth.Authorization
alias Pleroma.Web.OAuth.App
alias Pleroma.Web.OAuth.Authorization
alias Pleroma.Web.OAuth.App
- import Ecto.{Changeset, Query}
+ import Ecto.Changeset
+ import Ecto.Query
schema "oauth_authorizations" do
field(:token, :string)
schema "oauth_authorizations" do
field(:token, :string)
diff --git
a/lib/pleroma/web/web.ex
b/lib/pleroma/web/web.ex
index 4d5fd028e902e816632f336bfc9c96e75234c7fe..853aa2a87f8d63febb13036e11f00477fbef7f1a 100644
(file)
--- a/
lib/pleroma/web/web.ex
+++ b/
lib/pleroma/web/web.ex
@@
-24,7
+24,8
@@
defmodule Pleroma.Web do
quote do
use Phoenix.Controller, namespace: Pleroma.Web
import Plug.Conn
quote do
use Phoenix.Controller, namespace: Pleroma.Web
import Plug.Conn
- import Pleroma.Web.{Gettext, Router.Helpers}
+ import Pleroma.Web.Gettext
+ import Pleroma.Web.Router.Helpers
end
end
end
end
@@
-37,7
+38,9
@@
defmodule Pleroma.Web do
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
- import Pleroma.Web.{ErrorHelpers, Gettext, Router.Helpers}
+ import Pleroma.Web.ErrorHelpers
+ import Pleroma.Web.Gettext
+ import Pleroma.Web.Router.Helpers
require Logger
require Logger