dkforest

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

commit 7f7a607f53a8fc39498e328efca68f5d28b85107
parent c1f425d8f8dabed8fb3cfe425dc5e924fa8cf526
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 10 Nov 2022 12:47:48 -0800

either or not a user has enough karma to send pms

Diffstat:
Mpkg/database/tableUsers.go | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go @@ -536,3 +536,8 @@ func (u *User) IncrKarma(karma int64, description string) { } u.Karma += karma } + +// CanSendPM you get your first karma point after sending 20 public messages +func (u *User) CanSendPM() bool { + return u.Karma >= 1 +}