diff --git a/server/service/tag.go b/server/service/tag.go index 1748ac0..d4a7eeb 100644 --- a/server/service/tag.go +++ b/server/service/tag.go @@ -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 }