diff options
author | Egor <egor@kislitsyn.com> | 2019-04-22 07:20:43 +0000 |
---|---|---|
committer | kaniini <nenolod@gmail.com> | 2019-04-22 07:20:43 +0000 |
commit | b9cdf6d3b9940fded7d6be9f8771fd9c211afdd4 (patch) | |
tree | 4cb4fc190215842d6a14c4a202ff2fda32cc223a /lib/pleroma/web/oauth/token.ex | |
parent | 05862ded7a156ad6db16a70ec90045a2149da97d (diff) | |
download | pleroma-b9cdf6d3b9940fded7d6be9f8771fd9c211afdd4.tar.gz |
Use `User.get_cached*` everywhere
Diffstat (limited to 'lib/pleroma/web/oauth/token.ex')
-rw-r--r-- | lib/pleroma/web/oauth/token.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/oauth/token.ex b/lib/pleroma/web/oauth/token.ex index 2b5ad9b94..399140003 100644 --- a/lib/pleroma/web/oauth/token.ex +++ b/lib/pleroma/web/oauth/token.ex @@ -27,7 +27,7 @@ defmodule Pleroma.Web.OAuth.Token do def exchange_token(app, auth) do with {:ok, auth} <- Authorization.use_token(auth), true <- auth.app_id == app.id do - create_token(app, User.get_by_id(auth.user_id), auth.scopes) + create_token(app, User.get_cached_by_id(auth.user_id), auth.scopes) end end |