dkforest

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

commit a22fae4e1ea728fb00321ae44f3a24e10e97d67d
parent 941cc1bdfb0f37cd62e4a7b5a362f077d3540061
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sat, 28 Jan 2023 13:42:26 -0800

add doc

Diffstat:
Mpkg/global/global.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/global/global.go b/pkg/global/global.go @@ -27,6 +27,7 @@ func GetUserNotificationCount(userID database.UserID, sessionToken string) int64 } count = database.GetUserInboxMessagesCount(userID) count += database.GetUserNotificationsCount(userID) + // sessionToken can be empty when using the API if sessionToken != "" { count += database.GetUserSessionNotificationsCount(sessionToken) }