Add roles
attribute to Account entities in REST API (#23255)
This commit is contained in:
parent
e5ae75bf6a
commit
13a2abacc8
3 changed files with 23 additions and 5 deletions
|
@ -117,7 +117,7 @@ class Status < ApplicationRecord
|
|||
:tags,
|
||||
:preview_cards,
|
||||
:preloadable_poll,
|
||||
account: [:account_stat, :user],
|
||||
account: [:account_stat, user: :role],
|
||||
active_mentions: { account: :account_stat },
|
||||
reblog: [
|
||||
:application,
|
||||
|
@ -127,7 +127,7 @@ class Status < ApplicationRecord
|
|||
:conversation,
|
||||
:status_stat,
|
||||
:preloadable_poll,
|
||||
account: [:account_stat, :user],
|
||||
account: [:account_stat, user: :role],
|
||||
active_mentions: { account: :account_stat },
|
||||
],
|
||||
thread: { account: :account_stat }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue