mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 08:06:55 +00:00
Merge branch 'fix/disclose_client' into 'develop'
Fix User.disclose_client never working correctly See merge request pleroma/pleroma!4199
This commit is contained in:
commit
f2dc706f6f
2 changed files with 2 additions and 1 deletions
1
changelog.d/disclose_client.fix
Normal file
1
changelog.d/disclose_client.fix
Normal file
|
@ -0,0 +1 @@
|
|||
Client application data was always missing from the status
|
|
@ -52,7 +52,7 @@ defmodule Pleroma.Web.Plugs.OAuthPlug do
|
|||
where: t.token == ^token
|
||||
)
|
||||
|
||||
with %Token{user_id: user_id} = token_record <- Repo.one(token_query),
|
||||
with %Token{user_id: user_id} = token_record <- Repo.one(token_query) |> Repo.preload(:user),
|
||||
false <- is_nil(user_id),
|
||||
%User{} = user <- User.get_cached_by_id(user_id) do
|
||||
{:ok, user, token_record}
|
||||
|
|
Loading…
Reference in a new issue