Merge branch 'bugfix/emoji-size' into 'develop'
[akkoma] / lib / pleroma / web / oauth / token.ex
index 2b5ad9b9448bdfae6579878e6bfa53e2f518c067..399140003dbc73aa6f84b8480543c8f40eb7da58 100644 (file)
@@ -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