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,7 +116,9 @@ func updateCachedTagList() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
|
if count > 0 {
|
||||||
|
cachedTagList = append(cachedTagList, *tag.ToView().WithCount(int(count)))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user