mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 20:27: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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user