mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Serialize local account role via API, and show it via web view (#1045)
* [feature] Add 'role' field to api serialization of local accounts * [chore] Add a bit of license text while I'm here * [frogend] render account role on same line as username in web view of profile * style tweaking on role badges, general profile header layout * profile stats wrapping * don't render standard 'user' role on web view Co-authored-by: f0x <f0x@cthu.lu>
This commit is contained in:
@ -252,6 +252,14 @@ definitions:
|
||||
description: Bio/description of this account.
|
||||
type: string
|
||||
x-go-name: Note
|
||||
role:
|
||||
description: |-
|
||||
Role of the account on this instance.
|
||||
Omitted for remote accounts.
|
||||
type: accountRole
|
||||
example: user
|
||||
type: string
|
||||
x-go-name: Role
|
||||
source:
|
||||
$ref: '#/definitions/Source'
|
||||
statuses_count:
|
||||
|
Reference in New Issue
Block a user