dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit ee3ffb45b685813ce8ac6ce243e9827379fcaf83
parent 392acfb50724ac54ab6d2875ca2769e1e799e036
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 12 Jan 2023 16:07:17 -0800

reduce bandwidth

Diffstat:
Mpkg/web/public/views/pages/chat-messages.gohtml | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/web/public/views/pages/chat-messages.gohtml b/pkg/web/public/views/pages/chat-messages.gohtml @@ -129,6 +129,7 @@ .date-link:hover { color: #999; text-decoration: underline; } .sysmsg { color: #fff; font-family: 'Courier New', Courier, monospace; font-size: 14px; } small { font-size: 80%; font-weight: 400; } + .msg { padding: 3px 0 3px 8px; border-bottom: 1px solid #444; color: #888; position: relative; } .msg p:first-of-type { display: inline; } strong { font-weight: bold; } em { font-style: italic; } @@ -167,7 +168,7 @@ {{ $readMarkerRendered := false }} {{ range $idx, $e := .Data.Messages }} {{- if (.UserCanSee $.AuthUser) -}} - <div class="msg" style="padding: 3px 0 3px 8px; border-bottom: 1px solid #444; color: #888; position: relative; + <div class="msg" style=" {{- if and (or .User.IsHellbanned .IsHellbanned) $.AuthUser.DisplayHellbanned -}} background-color: rgba(0, 0, 0, 0.7); {{- else if and (eq $.AuthUser.ID .User.ID) $.AuthUser.HighlightOwnMessages -}} background-color: rgba(255,241,176,0.05);{{- end -}}