commit 221eaa4664d7367a94d3c3ce01c2cf803aadf6e1
parent 330b5f1b986246104768b92e6f7b2c3a1944cc3b
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Sun, 15 Jan 2023 18:04:43 -0800
typo
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/database/tableChatMessages.go b/pkg/database/tableChatMessages.go
@@ -275,7 +275,7 @@ func GetRoomChatMessagesByDate(roomID RoomID, dt time.Time) (out []ChatMessage,
return
}
-func GetChatMessages(roomID RoomID, username string, userID UserID, displayPms int64, mentionsOnly, DisplayHellbanned, displayIgnored, displayModerators bool) (out ChatMessages, err error) {
+func GetChatMessages(roomID RoomID, username string, userID UserID, displayPms int64, mentionsOnly, displayHellbanned, displayIgnored, displayModerators bool) (out ChatMessages, err error) {
q := DB.
Preload("User").
Preload("ToUser").
@@ -315,7 +315,7 @@ func GetChatMessages(roomID RoomID, username string, userID UserID, displayPms i
//-----------
var out2 []ChatMessage
- if DisplayHellbanned {
+ if displayHellbanned {
q2 := q.Where("is_hellbanned = 1 AND id > ?", minID)
err = q2.Find(&out2).Error
}