Prevent adding tags with zero count to the cached tag list

This commit is contained in:
2025-05-30 20:02:22 +08:00
parent 4f99bff2f5
commit 5fca51f852

View File

@@ -116,8 +116,10 @@ func updateCachedTagList() error {
if err != nil { if err != nil {
return err return err
} }
if count > 0 {
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count))) cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
} }
}
return nil return nil
} }