mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 09:52:26 -05:00
[bugfix] Fix account roles (#1542)
* Change account role from string to object * Update tests * small fixes + swagger docs --------- Co-authored-by: zowhoey <11893985+zowhoey@users.noreply.github.com>
This commit is contained in:
parent
b6143c9ab8
commit
e8a04b7ce1
10 changed files with 160 additions and 73 deletions
|
|
@ -34,7 +34,7 @@
|
|||
<div class="usernamecontainer">
|
||||
<div class="username">@{{ .account.Username }}@{{ .instance.AccountDomain }}</div>
|
||||
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}}
|
||||
{{ if and (.account.Role) (ne .account.Role "user") }}<div class="role {{ .account.Role }}">{{ .account.Role }}</div>{{ end }}
|
||||
{{ if and (.account.Role) (ne .account.Role.Name "user") }}<div class="role {{ .account.Role.Name }}">{{ .account.Role.Name }}</div>{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="detailed">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue