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