From ac0e0883c7faec96692a787f387d7042115150d9 Mon Sep 17 00:00:00 2001 From: Denis Beloglazov Date: Mon, 26 Jun 2023 19:35:46 +0400 Subject: [PATCH] fix panic: inactive user if it is with 30 days last seen time and more --- src/auth/user.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/auth/user.go b/src/auth/user.go index e0c3aca..37121f1 100644 --- a/src/auth/user.go +++ b/src/auth/user.go @@ -247,10 +247,6 @@ func (db *UserDB) Sync() *UserDB { if !user.Active { continue } - if time.Now().Unix()-user.LastSeen > 30*24*60*60 { - user.MarkAsInactive() - continue - } if db.current == "" { db.current = user.Pk continue