commit 7b4f7deda30192b9b4d34827f7041690e6370a39 parent 2f34aa239ecbe16f392f6a68ab7ec9dcf2e36118 Author: n0tr1v <n0tr1v@protonmail.com> Date: Thu, 2 Mar 2023 03:07:03 -0800 fix quick tag link for HB Diffstat:
| M | pkg/web/public/views/pages/chat-messages.gohtml | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/pkg/web/public/views/pages/chat-messages.gohtml b/pkg/web/public/views/pages/chat-messages.gohtml @@ -425,7 +425,11 @@ {{- else -}} {{- if or (not .El.IsHellbanned) (eq .Parent.AuthUser.ID .El.UserID) (and .El.IsHellbanned .Parent.AuthUser.IsHellbanned) .Parent.AuthUser.DisplayHellbanned -}} <div> - <a href="{{ $baseTopBarURL }}?tag={{ .El.Username }}{{ .Parent.Data.TopBarQueryParams | safeURL }}" + {{ $tagType := "tag" }} + {{- if and $.Parent.AuthUser.CanSeeHB .El.IsHellbanned -}} + {{ $tagType = "htag" }} + {{- end -}} + <a href="{{ $baseTopBarURL }}?{{ $tagType }}={{ .El.Username }}{{ .Parent.Data.TopBarQueryParams | safeURL }}" target="iframe1" {{ if and (.El.IsHellbanned) .Parent.AuthUser.DisplayHellbanned }}class="hb-row"{{ end }} style="color: {{ .El.Color }};">{{ .El.Username | first }}</a>