From cb18868ff588a3ee79d07e26b6392bbe1a954b52 Mon Sep 17 00:00:00 2001 From: DCK-c Date: Sat, 21 Mar 2026 11:27:33 +0800 Subject: [PATCH] fix: AI_Summary=False for user not in whitelist --- models/hole.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/hole.go b/models/hole.go index d6562f4e..55e661ef 100644 --- a/models/hole.go +++ b/models/hole.go @@ -293,8 +293,7 @@ func (holes Holes) Preprocess(c *fiber.Ctx) error { // for users in whitelist or whitelist is empty, AISummaryAvailable is true, hole.AISummaryAvailable = config.Config.WhiteListUserIds == nil || slices.Contains(config.Config.WhiteListUserIds, uid) - - hole.AISummaryAvailable = !(hole.Locked || hole.Hidden || hole.Frozen) + hole.AISummaryAvailable = hole.AISummaryAvailable && !(hole.Locked || hole.Hidden || hole.Frozen) for _, tag := range hole.Tags { if len(tag.Name) > 0 && tag.Name[0] == '*' { hole.AISummaryAvailable = false