From 94c81c2dd975bfd2147463820f794abd63079dcb Mon Sep 17 00:00:00 2001 From: Ke Chen Date: Tue, 2 Apr 2024 15:21:11 +0800 Subject: [PATCH] fix: tag null when load tags --- models/hole.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/hole.go b/models/hole.go index aed78cf..5e72c7e 100644 --- a/models/hole.go +++ b/models/hole.go @@ -128,6 +128,8 @@ func loadTags(holes Holes) (err error) { // remove sensitive tags if !tag.Sensitive() { tagMap[tag.ID] = tag + } else { + delete(tagMap, tag.ID) } }