diff options
author | 2023-02-20 17:00:44 +0100 | |
---|---|---|
committer | 2023-02-20 17:00:44 +0100 | |
commit | e8a04b7ce1fdb31febca7894229247207369bc85 (patch) | |
tree | 6650cc05351f39dc25b32d07858e93f5d17561f0 /web/template | |
parent | [feature] About page (#1495) (diff) | |
download | gotosocial-e8a04b7ce1fdb31febca7894229247207369bc85.tar.xz |
[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>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/profile.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index e484bd618..d584676a6 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -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"> |