mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Prevent adding tags with zero count to the cached tag list
This commit is contained in:
@@ -116,7 +116,9 @@ func updateCachedTagList() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
|
||||
if count > 0 {
|
||||
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user