diff --git a/web/handler/subject/get.go b/web/handler/subject/get.go index 178842db..17a3568a 100644 --- a/web/handler/subject/get.go +++ b/web/handler/subject/get.go @@ -135,12 +135,8 @@ func convertModelSubject(s model.Subject, totalEpisode int64, metaTags []tag.Tag Volumes: s.Volumes, Redirect: s.Redirect, Eps: s.Eps, - MetaTags: lo.Map(metaTags, func(item tag.Tag, index int) res.SubjectTag { - return res.SubjectTag{ - Name: item.Name, - Count: item.Count, - TotalCont: item.TotalCount, - } + MetaTags: lo.Map(metaTags, func(item tag.Tag, index int) string { + return item.Name }), Tags: slice.Map(s.Tags, func(tag model.Tag) res.SubjectTag { return res.SubjectTag{ diff --git a/web/res/subject.go b/web/res/subject.go index 8fb78cfb..66300e7b 100644 --- a/web/res/subject.go +++ b/web/res/subject.go @@ -48,7 +48,7 @@ type SubjectV0 struct { Collection SubjectCollectionStat `json:"collection"` ID model.SubjectID `json:"id"` Eps uint32 `json:"eps"` - MetaTags []SubjectTag `json:"meta_tags"` + MetaTags []string `json:"meta_tags"` Volumes uint32 `json:"volumes"` Series bool `json:"series"` Locked bool `json:"locked"`